$lastHeaders
$lastHeaders :
HTTP handler that uses PHP's HTTP stream wrapper.
__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, $startTime, \Psr\Http\Message\ResponseInterface $response = null, $error = null)
array | $options | |
\Psr\Http\Message\RequestInterface | $request | |
$startTime | ||
\Psr\Http\Message\ResponseInterface | $response | |
$error |
createResponse(\Psr\Http\Message\RequestInterface $request, array $options, $stream, $startTime)
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
$stream | ||
$startTime |
createSink(\Psr\Http\Message\StreamInterface $stream, array $options)
\Psr\Http\Message\StreamInterface | $stream | |
array | $options |
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.
createStream(\Psr\Http\Message\RequestInterface $request, array $options)
\Psr\Http\Message\RequestInterface | $request | |
array | $options |
resolveHost(\Psr\Http\Message\RequestInterface $request, array $options)
\Psr\Http\Message\RequestInterface | $request | |
array | $options |
getDefaultContext(\Psr\Http\Message\RequestInterface $request)
\Psr\Http\Message\RequestInterface | $request |
add_proxy(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |
add_timeout(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |
add_verify(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |
add_cert(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |
add_progress(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |
add_debug(\Psr\Http\Message\RequestInterface $request, $options, $value, $params)
\Psr\Http\Message\RequestInterface | $request | |
$options | ||
$value | ||
$params |