public function getResponseHeaders():array
    {
        $headers = [];
        foreach ($this->getResponse()->getHeaders() as $header => $values) {
            if (preg_grep('/^'.preg_quote($header, '$/').'/ui', $this->acceptableProxyHeaders)) {
                $headers[$header] = $values;
            }
        }
        return $headers;
    }
public function getResponseHeaders():array
    {
        $headers = [];
        foreach ($this->getResponse()->getHeaders() as $header => $values) {
            if (preg_grep('/^'.preg_quote($header, '$/').'/ui', $this->acceptableProxyHeaders)) {
                $headers[$header] = $values;
            }
        }
        return $headers;
    }
public function getResponseHeaders ( ) : array { $ headers = [ ] ; foreach ( $ this -> getResponse ( ) -> getHeaders ( ) as $ header => $ values ) { if ( preg_grep ( '/^' . preg_quote ( $ header , '$/' ) . '/ui' , $ this -> acceptableProxyHeaders ) ) { $ headers [ $ header ] = $ values ; } } return $ headers ; }
Returns all the imported headers from the HTTP response.

@return array
@throws \GuzzleHttp\Exception\GuzzleException
Returns all the imported headers from the HTTP response .