contentType property

  1. @override
MediaType? contentType
override

Content-type of this request.

By default, the mime-type is "text/plain" and the charset is "utf-8". When the request body or the encoding is set or updated, the content-type will be updated accordingly.

Implementation

@override
MediaType? get contentType => _response.contentType;