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(mixed $responses[, float|null $timeout = null ]) : ResponseStreamInterface
Parameters
- $responses : mixed
- $timeout : float|null = null