HTTP handler that uses PHP's HTTP stream wrapper.
- final
Cloneable
Instantiable
Methods |
public
__invoke
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
) :
GuzzleHttp Sends an HTTP request.
|
Properties |
private
$lastHeaders
|
Methods |
private
add_cert
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private
add_debug
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private
add_progress
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private
add_proxy
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private
add_timeout
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private
add_verify
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$value
,
array
$params
) :
void
|
private static addNotification ( array $params , callable $notify ) : void |
private static callArray ( array $functions ) : callable |
private
checkDecode
(
array
$options
,
array
$headers
,
$stream
) :
array
|
private
createResource
(
callable
$callback
) Create a resource and check to ensure it was created successfully
|
private
createResponse
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
,
$stream
,
?
float
$startTime
) :
GuzzleHttp
|
private createSink ( Psr\Http\Message\StreamInterface $stream , array $options ) : Psr\Http\Message\StreamInterface |
private
createStream
(
Psr\Http\Message\RequestInterface
$request
,
array
$options
)
|
private
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.
|
private getDefaultContext ( Psr\Http\Message\RequestInterface $request ) : array |
private invokeStats ( array $options , Psr\Http\Message\RequestInterface $request , ? float $startTime , ? Psr\Http\Message\ResponseInterface $response = NULL , ? Throwable $error = NULL ) : void |
private
parse_proxy
(
string
$url
) :
array
Parses the given proxy URL to make it compatible with the format PHP's stream context expects. |
private resolveHost ( Psr\Http\Message\RequestInterface $request , array $options ) : Psr\Http\Message\UriInterface |
Methods |
private static addNotification ( array $params , callable $notify ) : void |
private static callArray ( array $functions ) : callable |