amphp / http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.
https://amphp.org/http-client
MIT License
704 stars 66 forks source link

Fail streams only with StreamException #354

Closed trowski closed 11 months ago

trowski commented 11 months ago

This wraps exceptions used to fail response body so that ReadableStream::read() only throws instances of StreamException, fulfilling the interface contract.