axol_http/header/
mod.rs

1mod map;
2pub use map::*;
3mod names;
4pub use names::*;
5mod typed;
6pub use typed::TypedHeader;
7
8use std::borrow::Cow;
9
10pub fn header_name(name: &str) -> Cow<'static, str> {
11    match names::maybe_static_lowercase(name) {
12        Some(x) => Cow::Borrowed(x),
13        None => Cow::Owned(name.to_ascii_lowercase()),
14    }
15}