Documentation

StreamHandler
in package

HTTP handler that uses PHP's HTTP stream wrapper.

Table of Contents

Properties

$lastHeaders  : mixed

Methods

__invoke()  : PromiseInterface
Sends an HTTP request.
add_cert()  : mixed
add_debug()  : mixed
add_progress()  : mixed
add_proxy()  : mixed
add_timeout()  : mixed
add_verify()  : mixed
addNotification()  : mixed
callArray()  : mixed
checkDecode()  : mixed
createResource()  : resource
Create a resource and check to ensure it was created successfully
createResponse()  : mixed
createSink()  : mixed
createStream()  : mixed
drain()  : StreamInterface
Drains the source stream into the "sink" client option.
getDefaultContext()  : mixed
invokeStats()  : mixed
resolveHost()  : mixed

Properties

Methods

addNotification()

private addNotification(array<string|int, mixed> &$params, callable $notify) : mixed
Parameters
$params : array<string|int, mixed>
$notify : callable

callArray()

private callArray(array<string|int, mixed> $functions) : mixed
Parameters
$functions : array<string|int, mixed>

checkDecode()

private checkDecode(array<string|int, mixed> $options, array<string|int, mixed> $headers, mixed $stream) : mixed
Parameters
$options : array<string|int, mixed>
$headers : array<string|int, mixed>
$stream : mixed

createResource()

Create a resource and check to ensure it was created successfully

private createResource(callable $callback) : resource
Parameters
$callback : callable

Callable that returns stream resource

Tags
throws
RuntimeException

on error

Return values
resource

createResponse()

private createResponse(RequestInterface $request, array<string|int, mixed> $options, mixed $stream, mixed $startTime) : mixed
Parameters
$request : RequestInterface
$options : array<string|int, mixed>
$stream : mixed
$startTime : mixed

        
On this page

Search results