The documentation here uses the deprecated method Response::body() instead of the new Response::withBody().
It would be nice if the example could be updated, especially since the transformation seems not as simple a the rest (do I need a custom implementation of StreamInterface?)