TYPO3
7.6
|
Public Member Functions | |
sendRequest (HTTP_Request2 $request) | |
Protected Member Functions | |
calculateRequestLength (&$headers) | |
Protected Attributes | |
$request | |
$requestBody | |
$contentLength | |
Static Protected Attributes | |
static | $bodyDisallowed = array('TRACE') |
static | $bodyRequired = array('POST', 'PUT') |
Definition at line 40 of file Adapter.php.
|
protected |
Calculates length of the request body, adds proper headers
array | &$headers | associative array of request headers, this method will add proper 'Content-Length' and 'Content-Type' headers to this array (or remove them if not needed) |
Definition at line 96 of file Adapter.php.
References $contentLength, and elseif.
Referenced by HTTP_Request2_Adapter_Curl\createCurlHandle(), and HTTP_Request2_Adapter_Socket\prepareHeaders().
|
abstract |
Sends request to the remote server and returns its response
HTTP_Request2 | $request | HTTP request message |
HTTP_Request2_Exception |
|
staticprotected |
Definition at line 46 of file Adapter.php.
|
staticprotected |
Definition at line 58 of file Adapter.php.
|
protected |
Definition at line 77 of file Adapter.php.
Referenced by calculateRequestLength().
|
protected |
Definition at line 64 of file Adapter.php.
Referenced by HTTP_Request2_Adapter_Socket\handleRedirect(), HTTP_Request2_Adapter_Socket\sendRequest(), and HTTP_Request2_Adapter_Curl\sendRequest().
|
protected |
Definition at line 71 of file Adapter.php.
Referenced by HTTP_Request2_Adapter_Curl\workaroundPhpBug47204().