Closed vanodevium closed 1 year ago
Maybe this can be of help: https://github.com/laminas/laminas-httphandlerrunner/tree/2.6.x/src/Emitter
It can handle any PSR-7 ResponseInterface
and does exactly what you need.
This lib provides only PSR-7 methods.
Is there any chance to stringify response object to string like
\GuzzleHttp\Psr7\Message::toString()
can do this.Example of stringified response:
This functionality is really important for TCP connections.
I would be grateful for any help.