[go: up one dir, main page]

rocket_http 0.4.10

Types, traits, and parsers for HTTP requests, responses, and headers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[inline(always)]
pub fn is_whitespace(byte: char) -> bool {
    byte == ' ' || byte == '\t'
}

#[inline]
pub fn is_valid_token(c: char) -> bool {
    match c {
        '0'..='9' | 'A'..='Z' | '^'..='~' | '#'..='\''
            | '!' | '*' | '+' | '-' | '.'  => true,
        _ => false
    }
}