interface StreamableInterface

Methods

resource
toStream(bool$throw =true)

Casts the response to a PHP stream resource.

Details

resource toStream(bool$throw =true)

Casts the response to a PHP stream resource.

Parameters

bool $throw

Return Value

resource

Exceptions

TransportExceptionInterface When a network error occurs
RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached
ClientExceptionInterface On a 4xx when $throw is true
ServerExceptionInterface On a 5xx when $throw is true