StreamHandler
Table of Contents
-
$lastHeaders
: array<string|int, mixed>
-
__invoke()
: FulfilledPromise|RejectedPromise|PromiseInterface
-
add_cert()
: mixed
-
add_debug()
: mixed
-
add_progress()
: mixed
-
add_proxy()
: mixed
-
add_timeout()
: mixed
-
add_verify()
: mixed
-
addNotification()
: mixed
-
callArray()
: Closure
-
checkDecode()
: array<string|int, mixed>
-
createResource()
: mixed
-
createResponse()
: FulfilledPromise|RejectedPromise|PromiseInterface
-
createSink()
: PumpStream|Stream|LazyOpenStream|StreamInterface
-
createStream()
: mixed
-
drain()
: void
-
getDefaultContext()
: array<string|int, mixed>
-
invokeStats()
: mixed
-
resolveHost()
: UriInterface
private
array<string|int, mixed>
$lastHeaders
= []
__invoke()
public
__invoke(RequestInterface $request, array<string|int, mixed> $options) : FulfilledPromise|RejectedPromise|PromiseInterface
Parameters
-
$request
: RequestInterface
-
-
$options
: array<string|int, mixed>
-
Return values
FulfilledPromise|RejectedPromise|PromiseInterface
—
add_cert()
private
add_cert(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
add_debug()
private
add_debug(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
add_progress()
private
add_progress(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
add_proxy()
private
add_proxy(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
add_timeout()
private
add_timeout(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
add_verify()
private
add_verify(RequestInterface $request, mixed &$options, mixed $value, mixed &$params) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: mixed
-
-
$value
: mixed
-
-
$params
: mixed
-
Return values
mixed
—
addNotification()
private
addNotification(array<string|int, mixed> &$params, callable $notify) : mixed
Parameters
-
$params
: array<string|int, mixed>
-
-
$notify
: callable
-
Return values
mixed
—
callArray()
private
callArray(array<string|int, mixed> $functions) : Closure
Parameters
-
$functions
: array<string|int, mixed>
-
Return values
Closure
—
checkDecode()
private
checkDecode(array<string|int, mixed> $options, array<string|int, mixed> $headers, mixed $stream) : array<string|int, mixed>
Parameters
-
$options
: array<string|int, mixed>
-
-
$headers
: array<string|int, mixed>
-
-
$stream
: mixed
-
Return values
array<string|int, mixed>
—
createResource()
private
createResource(callable $callback) : mixed
Parameters
-
$callback
: callable
-
Return values
mixed
—
createResponse()
private
createResponse(RequestInterface $request, array<string|int, mixed> $options, mixed $stream, mixed $startTime) : FulfilledPromise|RejectedPromise|PromiseInterface
Parameters
-
$request
: RequestInterface
-
-
$options
: array<string|int, mixed>
-
-
$stream
: mixed
-
-
$startTime
: mixed
-
Return values
FulfilledPromise|RejectedPromise|PromiseInterface
—
createSink()
private
createSink(StreamInterface $stream, array<string|int, mixed> $options) : PumpStream|Stream|LazyOpenStream|StreamInterface
Parameters
-
$stream
: StreamInterface
-
-
$options
: array<string|int, mixed>
-
Return values
PumpStream|Stream|LazyOpenStream|StreamInterface
—
createStream()
private
createStream(RequestInterface $request, array<string|int, mixed> $options) : mixed
Parameters
-
$request
: RequestInterface
-
-
$options
: array<string|int, mixed>
-
Return values
mixed
—
drain()
private
drain(StreamInterface $source, StreamInterface $sink, mixed $contentLength) : void
Parameters
-
$source
: StreamInterface
-
-
$sink
: StreamInterface
-
-
$contentLength
: mixed
-
Return values
void
—
getDefaultContext()
private
getDefaultContext(RequestInterface $request) : array<string|int, mixed>
Parameters
-
$request
: RequestInterface
-
Return values
array<string|int, mixed>
—
invokeStats()
private
invokeStats(array<string|int, mixed> $options, RequestInterface $request, mixed $startTime[, ResponseInterface $response = null ][, mixed $error = null ]) : mixed
Parameters
-
$options
: array<string|int, mixed>
-
-
$request
: RequestInterface
-
-
$startTime
: mixed
-
-
$response
: ResponseInterface
= null
-
-
$error
: mixed
= null
-
Return values
mixed
—
resolveHost()
private
resolveHost(RequestInterface $request, array<string|int, mixed> $options) : UriInterface
Parameters
-
$request
: RequestInterface
-
-
$options
: array<string|int, mixed>
-
Return values
UriInterface
—