Public Member Functions | ||||
setTimeout ($timeout) | ||||
| ||||
getTimeout () | ||||
setFollowLocation ($really) | ||||
whether to follow header Location or not | ||||
isFollowLocation () | ||||
setNoBody ($really) | ||||
| ||||
hasNoBody () | ||||
setMaxRedirects ($maxRedirects) | ||||
| ||||
getMaxRedirects () | ||||
setMaxFileSize ($maxFileSize) | ||||
| ||||
getMaxFileSize () | ||||
send (HttpRequest $request) | ||||
| ||||
Static Public Member Functions | ||||
static | create () | |||
| ||||
Private Member Functions | ||||
argumentsToString ($array) | ||||
Private Attributes | ||||
$handle = null | ||||
$timeout = null | ||||
$followLocation = null | ||||
$maxRedirects = null | ||||
$maxFileSize = null | ||||
$noBody = null |
Definition at line 16 of file CurlHttpClient.class.php.
static CurlHttpClient::create | ( | ) | [static] |
CurlHttpClient::setTimeout | ( | $ | timeout | ) |
$timeout | in seconds |
Implements HttpClient.
Definition at line 37 of file CurlHttpClient.class.php.
References $timeout.
CurlHttpClient::getTimeout | ( | ) |
CurlHttpClient::setFollowLocation | ( | $ | really | ) |
whether to follow header Location or not
$really | boolean |
Implements HttpClient.
Definition at line 54 of file CurlHttpClient.class.php.
CurlHttpClient::isFollowLocation | ( | ) |
CurlHttpClient::setNoBody | ( | $ | really | ) |
$really | boolean |
Definition at line 70 of file CurlHttpClient.class.php.
CurlHttpClient::hasNoBody | ( | ) |
Definition at line 77 of file CurlHttpClient.class.php.
CurlHttpClient::setMaxRedirects | ( | $ | maxRedirects | ) |
Implements HttpClient.
Definition at line 85 of file CurlHttpClient.class.php.
References $maxRedirects.
CurlHttpClient::getMaxRedirects | ( | ) |
CurlHttpClient::setMaxFileSize | ( | $ | maxFileSize | ) |
Definition at line 99 of file CurlHttpClient.class.php.
References $maxFileSize.
Referenced by send().
CurlHttpClient::getMaxFileSize | ( | ) |
Definition at line 105 of file CurlHttpClient.class.php.
CurlHttpClient::send | ( | HttpRequest $ | request | ) |
Implements HttpClient.
Definition at line 113 of file CurlHttpClient.class.php.
References $handle, argumentsToString(), CurlHttpResponse::create(), HttpMethod::GET, Assert::isTrue(), HttpMethod::POST, and setMaxFileSize().
CurlHttpClient::argumentsToString | ( | $ | array | ) | [private] |
CurlHttpClient::$handle = null [private] |
CurlHttpClient::$timeout = null [private] |
CurlHttpClient::$followLocation = null [private] |
Definition at line 20 of file CurlHttpClient.class.php.
CurlHttpClient::$maxRedirects = null [private] |
CurlHttpClient::$maxFileSize = null [private] |
CurlHttpClient::$noBody = null [private] |
Definition at line 23 of file CurlHttpClient.class.php.