diff --git a/Cargo.toml b/Cargo.toml index 30c41da2..08ee269c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,17 +43,17 @@ sysinfo = "0.38.4" tracing = "0.1.44" num_cpus = "1.17.0" chunkify = "10.1.11" -hyperlane = "21.7.8" once_cell = "1.21.4" color-log = "10.1.11" +hyperlane = "21.12.0" serde_with = "3.24.0" serde_yaml = "0.9.33" urlencoding = "2.1.3" jwt-service = "10.1.11" color-output = "10.1.11" -hyperlane-core = "21.7.8" lombok-macros = "10.1.11" file-operation = "10.1.11" +hyperlane-core = "21.12.0" server-manager = "10.1.11" hyperlane-macros = "23.0.21" instrument-level = "10.1.11" diff --git a/application/header/const.rs b/application/header/const.rs new file mode 100644 index 00000000..2358a1d2 --- /dev/null +++ b/application/header/const.rs @@ -0,0 +1,23 @@ +/// HTTP `date` header name. +pub(crate) const DATE: &str = "date"; + +/// HTTP `range` request header name. +pub(crate) const RANGE: &str = "range"; + +/// HTTP `expires` response header name. +pub(crate) const EXPIRES: &str = "expires"; + +/// HTTP `accept-ranges` response header name. +pub(crate) const ACCEPT_RANGES: &str = "accept-ranges"; + +/// HTTP `authorization` request header name. +pub(crate) const AUTHORIZATION: &str = "authorization"; + +/// HTTP `cache-control` header name. +pub(crate) const CACHE_CONTROL: &str = "cache-control"; + +/// HTTP `content-range` response header name. +pub(crate) const CONTENT_RANGE: &str = "content-range"; + +/// HTTP `content-disposition` response header name. +pub(crate) const CONTENT_DISPOSITION: &str = "content-disposition"; diff --git a/application/header/mod.rs b/application/header/mod.rs new file mode 100644 index 00000000..1c7d0d10 --- /dev/null +++ b/application/header/mod.rs @@ -0,0 +1,3 @@ +mod r#const; + +pub(crate) use r#const::*; diff --git a/application/lib.rs b/application/lib.rs index 24bae0d7..f093f497 100644 --- a/application/lib.rs +++ b/application/lib.rs @@ -7,6 +7,7 @@ pub mod controller; pub mod domain; pub mod exception; +mod header; pub mod mapper; pub mod middleware; pub mod model; @@ -15,6 +16,8 @@ pub mod service; pub mod utils; pub mod view; +pub(crate) use header::*; + use std::{ collections::{HashMap, HashSet}, sync::{Arc, OnceLock},