MediaType

Types

Link copied to clipboard

The media type for Javascript.

Link copied to clipboard

The media type for JSON.

Link copied to clipboard

The media type for WebAssembly.

Link copied to clipboard

The media type for XML.

Link copied to clipboard

The media type for HTML.

Link copied to clipboard

The media type for plain text.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a media type for the given type and subtype, for example text/plain.

Properties

Link copied to clipboard

The subtype of the media type, e.g. "plain", "json", etc.

Link copied to clipboard

The type of the media type, e.g. "text", "application", etc.