public function parseContentTypeHeader(HttpHeaders $headers): ?ContentTypeHeaderValue
    {
        if (!$headers->containsKey('Content-Type')) {
            return null;
        }

        $contentTypeHeaderParameters = $this->parseParameters($headers, 'Content-Type');
        $contentType = $contentTypeHeaderParameters->getKeys()[0];

        return new ContentTypeHeaderValue($contentType, $contentTypeHeaderParameters);
    }