mediaType property

  1. @override
MediaType mediaType
override

The expected media type.

The value can be any registered MIME type, like text/html, application/json or application/geo+json.

The default value is application/octet-stream or generic binary data with unknown type.

Implementation

@override
MediaType get mediaType => Head.mediaTypeOf(response.headers['content-type']);