AsyncDecoratorTrait
Eases with processing responses while streaming them.
Tags
Table of Contents
Methods
- request() : AsyncResponse
- {@inheritdoc}
- stream() : ResponseStreamInterface
- {@inheritdoc}
Methods
request()
{@inheritdoc}
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
AsyncResponsestream()
{@inheritdoc}
public
stream(ResponseInterface|iterable<string|int, mixed> $responses[, float $timeout = null ]) : ResponseStreamInterface
Parameters
- $responses : ResponseInterface|iterable<string|int, mixed>
- $timeout : float = null