private function getResponseContentType(ResponseInterface $response):?string
    {
        $contentType = null;
        foreach ($this->listResponseHeaders($response) as $header => $value) {
            if ($header == 'Content-Type') {
                $contentType = explode(';', $value)[0];
            }
        }
        return $contentType;
    }