Head class abstract

An interface providing meta data for some content.

Implementers

Constructors

Default const constructor to allow extending this abstract class.
const

Properties

contentLength int?
An optional content length as number of bytes.
no setter
encoding Encoding
The expected charset encoding.
no setter
hashCode int
The hash code for this object.
no setterinherited
mediaType → MediaType
The expected media type.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hasType(String primaryType, String subType0, [String? orSubType1, String? orSubType2, String? orSubType3, String? orSubType4]) bool
Checks if "content-type" equals with primaryType and one of sub types.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

mediaTypeOf(String? contentType) → MediaType
Parses MediaType instance from contentType.