1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod map;
pub use map::*;
mod names;
pub use names::*;
mod typed;
pub use typed::TypedHeader;

use std::borrow::Cow;

fn header_name(name: &str) -> Cow<'static, str> {
    match names::maybe_static_lowercase(name) {
        Some(x) => Cow::Borrowed(x),
        None => Cow::Owned(name.to_ascii_lowercase()),
    }
}