contentType property

ContentTypeHeader? get contentType

The parsed Content-Type header.

Read-only. Set Content-Type through the body, such as with the mimeType argument of Body.fromString. On a request, read Body.bodyType instead. It changes with copyWith(body: ...), and this header does not.

Implementation

ContentTypeHeader? get contentType => this(Headers.contentType);