Property | Type | Description | |
---|---|---|---|
$connectionTimeout | integer | ||
$cookieManager | CookieManager | ||
$hostname | string | ||
$httpAuthenticator | HTTPAuthenticator | ||
$initialized | boolean | ||
$port | integer | ||
$requestBody | string | ||
$requestHeader | array | ||
$requestParameter | array | ||
$secure | boolean | ||
$timeout | integer | ||
$userAgent | string |
Method | Description | |
---|---|---|
__construct ( ) | ||
addHeader ( string $name, string $value, boolean $override = true ) | ||
close ( ) | ||
execute ( string $path = '/', string $method = HTTPRequestMethod::GET ) : HTTPResponse | ||
getConnectionTimeout ( ) : integer | ||
getCookieManager ( ) : CookieManager | ||
getHost ( ) : string | ||
getHostName ( ) : string | ||
getPort ( ) : integer | ||
getTimeout ( ) : integer | ||
getURI ( ) : string | ||
initialize ( string $hostname, boolean $secure = false, integer $port = HTTPConnection::HTTP_PORT, integer $connectionTimeout, integer $timeout ) | ||
isSecure ( ) : boolean | ||
newRequest ( ) : HTTPRequest | ||
setAuthenticator ( HTTPAuthenticator $httpAuthenticator ) | ||
setConnectionTimeout ( integer $connectionTimeout ) | ||
setCookieManager ( CookieManager $cookieManager ) | ||
setParam ( string $name, string $value = null ) | ||
setRequestBody ( string $requestBody ) | ||
setTimeout ( integer $timeout ) |
public initialize ( string $hostname, boolean $secure = false, integer $port = HTTPConnection::HTTP_PORT, integer $connectionTimeout, integer $timeout ) | ||
$hostname | string | Servidor que receberá a requisição. |
$secure | boolean | Indica se a conexão será segura (https). |
$port | integer | Porta da requisição. |
$connectionTimeout | integer | Timeout de conexão em segundos. |
$timeout | integer | Timeout de espera em segundos. |
public setAuthenticator ( HTTPAuthenticator $httpAuthenticator ) | ||
$httpAuthenticator | HTTPAuthenticator |
public setConnectionTimeout ( integer $connectionTimeout ) | ||
$connectionTimeout | integer |
public setCookieManager ( CookieManager $cookieManager ) | ||
$cookieManager | CookieManager |
protected HTTPAuthenticator $httpAuthenticator | ||
return | HTTPAuthenticator |