[domistream] Host HTTP: strict request head and query parsing into typed routes, XML answers the client parsers accept (head-end test corrected: a 64 KiB buffer without the empty line is already over the cap)
This commit is contained in:
@@ -95,7 +95,7 @@ pub(crate) fn hex_encode(bytes: &[u8]) -> String {
|
||||
s
|
||||
}
|
||||
|
||||
fn hex_digit(c: u8) -> Option<u8> {
|
||||
pub(crate) fn hex_digit(c: u8) -> Option<u8> {
|
||||
match c {
|
||||
b'0'..=b'9' => Some(c - b'0'),
|
||||
b'a'..=b'f' => Some(c - b'a' + 10),
|
||||
|
||||
Reference in New Issue
Block a user