Parse the content type from the headers
const parserType = parseContentType(headers);console.log(parserType); // text Copy
const parserType = parseContentType(headers);console.log(parserType); // text
If the content type is not supported
The headers to parse the content type from
The parser type
Parse the content type from the headers
Example
Throws
If the content type is not supported