protected function listResponseHeaders(ResponseInterface $response):\Generator
    {
        foreach ($response->getHeaders() as $header => $values) {
            foreach ($values as $value) {
                yield $header => $value;
            }
        }
    }
protected function listResponseHeaders(ResponseInterface $response):\Generator
    {
        foreach ($response->getHeaders() as $header => $values) {
            foreach ($values as $value) {
                yield $header => $value;
            }
        }
    }
protected function listResponseHeaders ( ResponseInterface $ response ) : \ Generator { foreach ( $ response -> getHeaders ( ) as $ header => $ values ) { foreach ( $ values as $ value ) { yield $ header => $ value ; } } }
Returns the list of all the headers of a PSR-7 response.

@param ResponseInterface $response
@return \Generator
Returns the list of all the headers of a PSR - 7 response .