rocket_http/parse/
checkers.rs1#[inline(always)]
2pub fn is_whitespace(&byte: &char) -> bool {
3 byte == ' ' || byte == '\t'
4}
5
6#[inline]
7pub fn is_valid_token(&c: &char) -> bool {
8 matches!(c, '0'..='9' | 'A'..='Z' | '^'..='~' | '#'..='\''
9 | '!' | '*' | '+' | '-' | '.')
10 }