std.mime
Global Variables
pub const APPLICATION_JAVASCRIPT: Mime
pub const APPLICATION_JAVASCRIPT_UTF_8: Mime
pub const APPLICATION_JSON: Mime
pub const APPLICATION_MSGPACK: Mime
pub const APPLICATION_OCTET_STREAM: Mime
pub const APPLICATION_PDF: Mime
pub const APPLICATION_WWW_FORM_URLENCODED: Mime
pub const FONT_WOFF2: Mime
pub const IMAGE_JPEG: Mime
pub const IMAGE_STAR: Mime
pub const MULTIPART_FORM_DATA: Mime
pub const STAR_STAR: Mime
Mime constants
Example
nv
use std.mime.{self, Mime};
let star_star = mime.STAR_STAR;
assert_eq star_star.type_(), "*";
assert_eq star_star.subtype(), "*";
pub const TEXT_CSS_UTF_8: Mime
pub const TEXT_CSV_UTF_8: Mime
pub const TEXT_EVENT_STREAM: Mime
pub const TEXT_HTML_UTF_8: Mime
pub const TEXT_JAVASCRIPT: Mime
pub const TEXT_PLAIN: Mime
pub const TEXT_PLAIN_UTF_8: Mime
pub const TEXT_TAB_SEPARATED_VALUES: Mime
pub const TEXT_TAB_SEPARATED_VALUES_UTF_8: Mime
pub const TEXT_VCARD: Mime