@pbvex/protocol / parseContentType
Function: parseContentType()
parseContentType(
value):ParsedContentType|undefined
Parse a Content-Type header as a media type per RFC 7231/7230: type "/" subtype *( OWS ";" OWS parameter ) where type and subtype are tokens and parameter values are tokens or quoted-strings. Parameter names are normalized to lowercase.
Parameters
value
string
Returns
ParsedContentType | undefined