docspec_http/format.rs
1//! MIME type and HTTP header constants for the conversion API.
2
3/// Cache-Control header value applied to all responses.
4pub const CACHE_CONTROL_VALUE: &str = "max-age=0, private, must-revalidate";
5
6/// Health endpoint response body.
7pub const HEALTH_BODY: &str = "Healthy.";
8
9/// The MIME type accepted as request body.
10pub const INPUT_MIME_MARKDOWN: &str = "text/markdown";
11
12/// Accepted alias for the output MIME type (input-only; server always returns primary).
13pub const OUTPUT_MIME_ALIAS: &str = "application/vnd.blocknote+json";
14
15/// The primary output MIME type returned on success.
16pub const OUTPUT_MIME_PRIMARY: &str = "application/vnd.docspec.blocknote+json";
17
18/// The primary HTML output MIME type returned when the HTML writer is selected.
19pub const OUTPUT_MIME_HTML_PRIMARY: &str = "text/html";
20
21/// The primary `oxa.dev` output MIME type returned when the `oxa.dev` writer is selected.
22pub const OUTPUT_MIME_OXA_PRIMARY: &str = "application/vnd.oxa+json";