Coconstructor
Bun

constructor

util.MIMEType.constructor

Not implemented in Bun

constructor MIMEType(
input: string | { toString: () => string }

Creates a new MIMEType object by parsing the input.

A TypeError will be thrown if the input is not a valid MIME. Note that an effort will be made to coerce the given values into strings.

@param input

The input MIME to parse.