gmponos / guzzle-log-middleware

A Guzzle middleware to log request and responses automatically
MIT License
73 stars 24 forks source link

StringHandler not compatible with kevinrob/guzzle-cache-middleware #45

Open compwright opened 2 years ago

compwright commented 2 years ago

The response bodies of cache hits are implemented as GuzzleHttp\Psr7\PumpStream, which is not seekable. This causes the following error:

StringHandler can not log request/response because the body is not seekable/readable.