Skip to main content
Version: edge

mime

Mimetypes mappings to codecs

Usage:

use tremor::mime;
let codec = mime_to_codec["application/json"];

Constants

AMY

type: String

Same as ANY, for backwards compatibility due to a typo in earlier versions

ANY

type: String

constant used for matching any mime type agains a codec

CODEC_TO_MIME

type: Object

Mapping of codecs to mimetypes

MIME_TO_CODEC

type: Object

Mapping of mimetypes to codecs