docspec-http 1.7.0

HTTP API server for DocSpec document conversion
Documentation
//! MIME type and HTTP header constants for the conversion API.

/// Cache-Control header value applied to all responses.
pub const CACHE_CONTROL_VALUE: &str = "max-age=0, private, must-revalidate";

/// Health endpoint response body.
pub const HEALTH_BODY: &str = "Healthy.";

/// The MIME type accepted as request body.
pub const INPUT_MIME_MARKDOWN: &str = "text/markdown";

/// The MIME type accepted as request body for HTML input.
pub const INPUT_MIME_HTML: &str = "text/html";

/// MIME type for DOCX documents. Strict — must be sent verbatim with no parameters.
pub const INPUT_MIME_DOCX_PRIMARY: &str =
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document";

/// Accepted alias for the output MIME type (input-only; server always returns primary).
pub const OUTPUT_MIME_ALIAS: &str = "application/vnd.blocknote+json";

/// The primary output MIME type returned on success.
pub const OUTPUT_MIME_PRIMARY: &str = "application/vnd.docspec.blocknote+json";

/// The primary HTML output MIME type returned when the HTML writer is selected.
pub const OUTPUT_MIME_HTML_PRIMARY: &str = "text/html";

/// The primary `oxa.dev` output MIME type returned when the `oxa.dev` writer is selected.
pub const OUTPUT_MIME_OXA_PRIMARY: &str = "application/vnd.oxa+json";

/// The primary Pandoc native output MIME type returned when the Pandoc native writer is selected.
pub const OUTPUT_MIME_PANDOC_NATIVE_PRIMARY: &str = "application/vnd.pandoc.native";