src/Extractor/HttpClient.php
private function formatHeaders($response)
    {
        $headers = [];
        foreach ($response->getHeaders() as $name => $value) {
            $headers[strtolower($name)] = \is_array($value) ? implode(', ', $value) : $value;
        }

        return $headers;
    }
private function formatHeaders($response)
    {
        $headers = [];
        foreach ($response->getHeaders() as $name => $value) {
            $headers[strtolower($name)] = \is_array($value) ? implode(', ', $value) : $value;
        }

        return $headers;
    }
private function formatHeaders ( $ response ) { $ headers = [ ] ; foreach ( $ response -> getHeaders ( ) as $ name => $ value ) { $ headers [ strtolower ( $ name ) ] = \ is_array ( $ value ) ? implode ( ', ' , $ value ) : $ value ; } return $ headers ; }
Format all headers to avoid unecessary array level.
Also lower the header name.

@param Response $response

@return array
Format all headers to avoid unecessary array level . Also lower the header name .