Unirest\Request::proxyAuth PHP Method

proxyAuth() public static method

Set proxy authentication method to use
public static proxyAuth ( string $username = '', string $password = '', integer $method = CURLAUTH_BASIC )
$username string authentication username
$password string authentication password
$method integer authentication method
    public static function proxyAuth($username = '', $password = '', $method = CURLAUTH_BASIC)
    {
        self::$proxy['auth']['user'] = $username;
        self::$proxy['auth']['pass'] = $password;
        self::$proxy['auth']['method'] = $method;
    }