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;
    }