Documentation

AsyncDecoratorTrait uses trait:short

Eases with processing responses while streaming them.

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Properties

$client  : HttpClientInterface

Methods

__construct()  : mixed
request()  : AsyncResponse
reset()  : void
stream()  : ResponseStreamInterface
withOptions()  : static

Properties

Methods

request()

public abstract request(string $method, string $url[, array<string|int, mixed> $options = [] ]) : AsyncResponse
Parameters
$method : string
$url : string
$options : array<string|int, mixed> = []
Return values
AsyncResponse

withOptions()

public withOptions(array<string|int, mixed> $options) : static
Parameters
$options : array<string|int, mixed>
Return values
static

        
On this page

Search results