mediaType property
String?
get
mediaType
The parsed content-type, without parameters, or null when absent.
Parsing is http_parser's, so a header carrying parameters, odd casing,
or quoted values is read the same way the rest of the Dart HTTP stack
reads it.
Implementation
String? get mediaType => contentType?.mimeType;