Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (RequestInterface $request, $emitIo=false) | |
progress ($downloadSize, $downloaded, $uploadSize, $uploaded, $handle=null) | |
readRequestBody ($ch, $fd, $length) | |
receiveResponseHeader ($curl, $header) | |
writeResponseBody ($curl, $write) | |
Protected Attributes | |
$emitIo | |
$request | |
Mediator between curl handles and request objects
Definition at line 12 of file RequestMediator.php.
Guzzle\Http\Curl\RequestMediator::__construct | ( | RequestInterface | $request, |
$emitIo = false |
|||
) |
RequestInterface | $request | Request to mediate |
bool | $emitIo | Set to true to dispatch events on input and output |
Definition at line 30 of file RequestMediator.php.
References Guzzle\Http\Curl\RequestMediator\$emitIo, and Guzzle\Http\Curl\RequestMediator\$request.
Guzzle\Http\Curl\RequestMediator::progress | ( | $downloadSize, | |
$downloaded, | |||
$uploadSize, | |||
$uploaded, | |||
$handle = null |
|||
) |
Received a progress notification
int | $downloadSize | Total download size |
int | $downloaded | Amount of bytes downloaded |
int | $uploadSize | Total upload size |
int | $uploaded | Amount of bytes uploaded |
resource | $handle | CurlHandle object |
Definition at line 94 of file RequestMediator.php.
Guzzle\Http\Curl\RequestMediator::readRequestBody | ( | $ch, | |
$fd, | |||
$length | |||
) |
Read data from the request body and send it to curl
resource | $ch | Curl handle |
resource | $fd | File descriptor |
int | $length | Amount of data to read |
Definition at line 140 of file RequestMediator.php.
Guzzle\Http\Curl\RequestMediator::receiveResponseHeader | ( | $curl, | |
$header | |||
) |
Receive a response header from curl
resource | $curl | Curl handle |
string | $header | Received header |
Definition at line 44 of file RequestMediator.php.
References Guzzle\Http\EntityBody\factory().
Guzzle\Http\Curl\RequestMediator::writeResponseBody | ( | $curl, | |
$write | |||
) |
Write data to the response body of a request
resource | $curl | Curl handle |
string | $write | Data that was received |
Definition at line 114 of file RequestMediator.php.
|
protected |
Whether or not to emit read/write events
Definition at line 24 of file RequestMediator.php.
Referenced by Guzzle\Http\Curl\RequestMediator\__construct().
|
protected |
Definition at line 18 of file RequestMediator.php.
Referenced by Guzzle\Http\Curl\RequestMediator\__construct().