use super::ParamKind;
use crate::Mime;
pub const ANY: Mime = Mime {
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_essence: Some("*/*"),
static_basetype: Some("*"),
static_subtype: Some("*"),
};
pub const JAVASCRIPT: Mime = Mime {
static_essence: Some("application/javascript"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: Some(ParamKind::Utf8),
static_basetype: Some("application"),
static_subtype: Some("javascript"),
};
pub const JSON: Mime = Mime {
static_essence: Some("application/json"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_basetype: Some("application"),
static_subtype: Some("json"),
};
pub const CSS: Mime = Mime {
static_essence: Some("text/css"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: Some(ParamKind::Utf8),
static_basetype: Some("text"),
static_subtype: Some("css"),
};
pub const HTML: Mime = Mime {
static_essence: Some("text/html"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: Some(ParamKind::Utf8),
static_basetype: Some("text"),
static_subtype: Some("html"),
};
pub const SVG: Mime = Mime {
static_essence: Some("image/svg+xml"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_basetype: Some("image"),
static_subtype: Some("svg+xml"),
};
pub const ICO: Mime = Mime {
static_essence: Some("image/x-icon"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_basetype: Some("image"),
static_subtype: Some("x-icon"),
};
pub const PNG: Mime = Mime {
static_essence: Some("image/png"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_basetype: Some("image"),
static_subtype: Some("png"),
};
pub const JPEG: Mime = Mime {
static_essence: Some("image/jpeg"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: None,
static_basetype: Some("image"),
static_subtype: Some("jpeg"),
};
pub const SSE: Mime = Mime {
static_essence: Some("text/event-stream"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
static_basetype: Some("text"),
static_subtype: Some("event-stream"),
params: None,
};
pub const PLAIN: Mime = Mime {
static_essence: Some("text/plain"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
params: Some(ParamKind::Utf8),
static_basetype: Some("text"),
static_subtype: Some("plain"),
};
pub const BYTE_STREAM: Mime = Mime {
static_essence: Some("application/octet-stream"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
static_basetype: Some("application"),
static_subtype: Some("octet-stream"),
params: None,
};
pub const FORM: Mime = Mime {
static_essence: Some("application/x-www-form-urlencoded"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
static_basetype: Some("application"),
static_subtype: Some("x-www-form-urlencoded"),
params: None,
};
pub const MULTIPART_FORM: Mime = Mime {
static_essence: Some("multipart/form-data"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
static_basetype: Some("multipart"),
static_subtype: Some("form-data"),
params: None,
};
pub const WASM: Mime = Mime {
static_essence: Some("application/wasm"),
essence: String::new(),
basetype: String::new(),
subtype: String::new(),
static_basetype: Some("application"),
static_subtype: Some("wasm"),
params: None,
};