Creates a new content type with the specified media type and subtype.
The media type.
The media subtype.
The content type parameters.
Invoked when the content type changes.
The media type.
The media subtype.
The boundary parameter, if available.
The charset parameter, if available.
The charset encoding represented by the charset parameter, if available.
The format parameter, if available.
The MIME type in type/subtype form.
The name parameter, if available.
Determines whether this content type matches the specified media type and subtype.
The * wildcard may be used for either argument.
The media type.
The media subtype.
true if this content type matches; otherwise, false.
Encodes this content type as a folded header value.
The formatting options.
The charset to use when encoding parameter values.
The serialized header value.
Serializes this content type.
The formatting options.
The charset to use when encoding parameter values.
If true, parameter values will be encoded.
The serialized string.
StaticparseParses a content type from text or bytes.
The input to parse.
The parser options.
A Result; { ok: false } with a MimeError on malformed input.
StatictryAttempts to parse a content type from a byte range.
The parser options.
The input buffer.
The current parse cursor.
The end index of the input range.
Optionalpartial: { contentType: ContentType | null }
Receives a partially parsed content type when type/subtype parsing succeeds.
A Result; { ok: false } with a MimeError on malformed input.
Represents a
Content-Typeheader value.