credence_lib/render/
constants.rs

1use kutil::http::*;
2
3/// Index.
4pub const INDEX: &str = "index";
5
6/// `text/html`.
7pub const HTML_MEDIA_TYPE_STRING: &str = "text/html";
8
9/// `application/json`.
10pub const JSON_MEDIA_TYPE_STRING: &str = "application/json";
11
12/// `text/html` [MediaType].
13pub const HTML_MEDIA_TYPE: MediaType = MediaType::new_fostered("text", "html");
14
15/// `application/json` [MediaType].
16pub const JSON_MEDIA_TYPE: MediaType = MediaType::new_fostered("application", "json");
17
18/// Supported renderable [MediaTypeSelector]s.
19pub const RENDERED_PAGE_MEDIA_TYPES: &[MediaTypeSelector] =
20    &[MediaTypeSelector::new_fostered("text", "html"), MediaTypeSelector::new_fostered("application", "json")];