1use http::Method;
4use std::sync::LazyLock;
5
6pub const METHOD_QUERY: &str = "QUERY";
8
9static QUERY_METHOD: LazyLock<Method> =
10 LazyLock::new(|| Method::from_bytes(b"QUERY").expect("QUERY is a valid method token"));
11
12pub fn query_method() -> Method {
17 QUERY_METHOD.clone()
18}
19
20pub const HEADER_ACCEPT_QUERY: &str = "accept-query";
22pub const HEADER_ALLOW: &str = "allow";
24pub const HEADER_CONTENT_TYPE: &str = "content-type";
26pub const HEADER_CONTENT_LOCATION: &str = "content-location";
28pub const HEADER_LOCATION: &str = "location";
30pub const HEADER_ACCEPT: &str = "accept";
32
33pub const MEDIA_TYPE_JSON: &str = "application/json";
35pub const MEDIA_TYPE_FORM: &str = "application/x-www-form-urlencoded";