\GuzzleHttp\HandlerStreamHandler

HTTP handler that uses PHP's HTTP stream wrapper.

Summary

Methods
Properties
Constants
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
invokeStats()
createResponse()
createSink()
checkDecode()
drain()
createResource()
createStream()
resolveHost()
getDefaultContext()
add_proxy()
add_timeout()
add_verify()
add_cert()
add_progress()
add_debug()
addNotification()
callArray()
$lastHeaders
N/A

Properties

$lastHeaders

$lastHeaders : 

Type

Methods

createResponse()

createResponse(\Psr\Http\Message\RequestInterface  $request, array  $options,   $stream,   $startTime) 

Parameters

\Psr\Http\Message\RequestInterface $request
array $options
$stream
$startTime

checkDecode()

checkDecode(array  $options, array  $headers,   $stream) 

Parameters

array $options
array $headers
$stream

createResource()

createResource(callable  $callback) : resource

Create a resource and check to ensure it was created successfully

Parameters

callable $callback

Callable that returns stream resource

Throws

\RuntimeException

on error

Returns

resource

add_proxy()

add_proxy(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

add_timeout()

add_timeout(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

add_verify()

add_verify(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

add_cert()

add_cert(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

add_progress()

add_progress(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

add_debug()

add_debug(\Psr\Http\Message\RequestInterface  $request,   $options,   $value,   $params) 

Parameters

\Psr\Http\Message\RequestInterface $request
$options
$value
$params

addNotification()

addNotification(array  $params, callable  $notify) 

Parameters

array $params
callable $notify

callArray()

callArray(array  $functions) 

Parameters

array $functions