Companion

object Companion

Parser and well-known media-type constants.

Properties

Link copied to clipboard

application/json; charset=utf-8.

Link copied to clipboard

application/octet-stream.

Link copied to clipboard

text/plain; charset=utf-8.

Functions

Link copied to clipboard

Parses a media-type string of the form type/subtype optionally followed by ; key=value parameters. The type, subtype, and any charset parameter are lower-cased; the original string is preserved for toString. Returns null when value is not parseable.