$lastHeaders
$lastHeaders : array
HTTP handler that uses PHP's HTTP stream wrapper.
$lastHeaders : array
__invoke(\Psr\Http\Message\RequestInterface $request, array $options) : \GuzzleHttp\Promise\PromiseInterface
Sends an HTTP request.
\Psr\Http\Message\RequestInterface | $request | Request to send. |
array | $options | Request transfer options. |
invokeStats(array $options, \Psr\Http\Message\RequestInterface $request, ?float $startTime, \Psr\Http\Message\ResponseInterface $response = null, \Throwable $error = null) : void
array | $options | |
\Psr\Http\Message\RequestInterface | $request | |
?float | $startTime | |
\Psr\Http\Message\ResponseInterface | $response | |
\Throwable | $error |
createResponse(\Psr\Http\Message\RequestInterface $request, array $options, resource $stream, ?float $startTime) : \GuzzleHttp\Promise\PromiseInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
resource | $stream | |
?float | $startTime |
drain(\Psr\Http\Message\StreamInterface $source, \Psr\Http\Message\StreamInterface $sink, string $contentLength) : \Psr\Http\Message\StreamInterface
Drains the source stream into the "sink" client option.
\Psr\Http\Message\StreamInterface | $source | |
\Psr\Http\Message\StreamInterface | $sink | |
string | $contentLength | Header specifying the amount of data to read. |
when the sink option is invalid.