min_http11_core 0.2.4

Minimum HTTP/1.1 version, request line and headers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait AsciiLowercaseTestExt {
    fn is_ascii_lowercase(&self) -> bool;
}

const DASH: u8 = b'-';
const UNDERSCORE: u8 = b'_';

impl AsciiLowercaseTestExt for [u8] {
    fn is_ascii_lowercase(&self) -> bool {
        self.iter()
            .all(|&b| b.is_ascii_lowercase() || b.is_ascii_digit() || b == DASH || b == UNDERSCORE)
    }
}