credence_lib/render/
constants.rs1use kutil::http::*;
2
3pub const INDEX: &str = "index";
5
6pub const HTML_MEDIA_TYPE_STRING: &str = "text/html";
8
9pub const JSON_MEDIA_TYPE_STRING: &str = "application/json";
11
12pub const HTML_MEDIA_TYPE: MediaType = MediaType::new_fostered("text", "html");
14
15pub const JSON_MEDIA_TYPE: MediaType = MediaType::new_fostered("application", "json");
17
18pub const RENDERED_PAGE_MEDIA_TYPES: &[MediaTypeSelector] =
20 &[MediaTypeSelector::new_fostered("text", "html"), MediaTypeSelector::new_fostered("application", "json")];