| 42 | } |
| 43 | |
| 44 | static bool isHttpTokenCharacter(char c) |
| 45 | { |
| 46 | return (c >= 'A' and c <= 'Z') or (c >= 'a' and c <= 'z') or (c >= '0' and c <= '9') or c == '!' or c == '#' or |
| 47 | c == '$' or c == '%' or c == '&' or c == '\'' or c == '*' or c == '+' or c == '-' or c == '.' or c == '^' or |
| 48 | c == '_' or c == '`' or c == '|' or c == '~'; |
| 49 | } |
| 50 | |
| 51 | static size_t skipAuthSpaces(SC::Span<const char> bytes, size_t offset, size_t end) |
| 52 | { |