Public Member Functions | |
setOption ($key, $value) | |
dropOption ($key) | |
getOption ($key) | |
setTimeout ($timeout) | |
getTimeout () | |
setFollowLocation ($really) | |
whether to follow header Location or not | |
isFollowLocation () | |
setNoBody ($really) | |
hasNoBody () | |
setMaxRedirects ($maxRedirects) | |
getMaxRedirects () | |
setMaxFileSize ($maxFileSize) | |
getMaxFileSize () | |
addRequest (HttpRequest $request, $options=array()) | |
getResponse (HttpRequest $request) | |
send (HttpRequest $request) | |
multiSend () | |
Static Public Member Functions | |
static | create () |
Protected Member Functions | |
getRequestKey (HttpRequest $request) | |
makeHandle (HttpRequest $request, CurlHttpResponse $response) | |
makeResponse ($handle, CurlHttpResponse $response) | |
Private Member Functions | |
argumentsToString ($array) | |
Private Attributes | |
$options = array() | |
$followLocation = null | |
$maxFileSize = null | |
$noBody = null | |
$multiRequests = array() | |
$multiResponses = array() | |
$multiThreadOptions = array() |
Definition at line 16 of file CurlHttpClient.class.php.
CurlHttpClient::addRequest | ( | HttpRequest $ | request, | |
$ | options = array() | |||
) |
Definition at line 154 of file CurlHttpClient.class.php.
References $options, getRequestKey(), and Assert::isArray().
CurlHttpClient::argumentsToString | ( | $ | array | ) | [private] |
Definition at line 340 of file CurlHttpClient.class.php.
References Assert::isArray().
Referenced by makeHandle().
static CurlHttpClient::create | ( | ) | [static] |
Definition at line 30 of file CurlHttpClient.class.php.
Referenced by send().
CurlHttpClient::dropOption | ( | $ | key | ) |
Definition at line 48 of file CurlHttpClient.class.php.
CurlHttpClient::getMaxFileSize | ( | ) |
Definition at line 146 of file CurlHttpClient.class.php.
CurlHttpClient::getMaxRedirects | ( | ) |
Implements HttpClient.
Definition at line 129 of file CurlHttpClient.class.php.
CurlHttpClient::getOption | ( | $ | key | ) |
Definition at line 55 of file CurlHttpClient.class.php.
CurlHttpClient::getRequestKey | ( | HttpRequest $ | request | ) | [protected] |
Definition at line 249 of file CurlHttpClient.class.php.
Referenced by addRequest(), and getResponse().
CurlHttpClient::getResponse | ( | HttpRequest $ | request | ) |
Definition at line 174 of file CurlHttpClient.class.php.
References getRequestKey().
CurlHttpClient::getTimeout | ( | ) |
Implements HttpClient.
Definition at line 77 of file CurlHttpClient.class.php.
CurlHttpClient::hasNoBody | ( | ) |
Definition at line 114 of file CurlHttpClient.class.php.
CurlHttpClient::isFollowLocation | ( | ) |
Implements HttpClient.
Definition at line 98 of file CurlHttpClient.class.php.
CurlHttpClient::makeHandle | ( | HttpRequest $ | request, | |
CurlHttpResponse $ | response | |||
) | [protected] |
Definition at line 254 of file CurlHttpClient.class.php.
References $options, argumentsToString(), HttpMethod::GET, HttpRequest::getCookie(), HttpRequest::getGet(), HttpRequest::getHeaderList(), HttpRequest::getMethod(), HttpRequest::getPost(), HttpRequest::getUrl(), Assert::isNotNull(), and HttpMethod::POST.
Referenced by multiSend(), and send().
CurlHttpClient::makeResponse | ( | $ | handle, | |
CurlHttpResponse $ | response | |||
) | [protected] |
Definition at line 322 of file CurlHttpClient.class.php.
References Assert::isNotNull(), and CurlHttpResponse::setStatus().
Referenced by multiSend(), and send().
CurlHttpClient::multiSend | ( | ) |
Definition at line 210 of file CurlHttpClient.class.php.
References Assert::isNotEmptyArray(), makeHandle(), and makeResponse().
CurlHttpClient::send | ( | HttpRequest $ | request | ) |
Implements HttpClient.
Definition at line 187 of file CurlHttpClient.class.php.
References create(), makeHandle(), makeResponse(), and setMaxFileSize().
CurlHttpClient::setFollowLocation | ( | $ | really | ) |
whether to follow header Location or not
$really | boolean |
Implements HttpClient.
Definition at line 91 of file CurlHttpClient.class.php.
References Assert::isBoolean().
CurlHttpClient::setMaxFileSize | ( | $ | maxFileSize | ) |
Definition at line 140 of file CurlHttpClient.class.php.
References $maxFileSize.
Referenced by send().
CurlHttpClient::setMaxRedirects | ( | $ | maxRedirects | ) |
Implements HttpClient.
Definition at line 122 of file CurlHttpClient.class.php.
CurlHttpClient::setNoBody | ( | $ | really | ) |
$really | boolean |
Definition at line 107 of file CurlHttpClient.class.php.
References Assert::isBoolean().
CurlHttpClient::setOption | ( | $ | key, | |
$ | value | |||
) |
Definition at line 38 of file CurlHttpClient.class.php.
CurlHttpClient::setTimeout | ( | $ | timeout | ) |
$timeout | in seconds |
Implements HttpClient.
Definition at line 67 of file CurlHttpClient.class.php.
CurlHttpClient::$followLocation = null [private] |
Definition at line 20 of file CurlHttpClient.class.php.
CurlHttpClient::$maxFileSize = null [private] |
Definition at line 21 of file CurlHttpClient.class.php.
Referenced by setMaxFileSize().
CurlHttpClient::$multiRequests = array() [private] |
Definition at line 23 of file CurlHttpClient.class.php.
CurlHttpClient::$multiResponses = array() [private] |
Definition at line 24 of file CurlHttpClient.class.php.
CurlHttpClient::$multiThreadOptions = array() [private] |
Definition at line 25 of file CurlHttpClient.class.php.
CurlHttpClient::$noBody = null [private] |
Definition at line 22 of file CurlHttpClient.class.php.
CurlHttpClient::$options = array() [private] |
Definition at line 18 of file CurlHttpClient.class.php.
Referenced by addRequest(), and makeHandle().