| 11 | namespace |
| 12 | { |
| 13 | static bool scHttpHexValue(char current, uint8_t& value) |
| 14 | { |
| 15 | if (current >= '0' and current <= '9') |
| 16 | { |
| 17 | value = static_cast<uint8_t>(current - '0'); |
| 18 | return true; |
| 19 | } |
| 20 | if (current >= 'a' and current <= 'f') |
| 21 | { |
| 22 | value = static_cast<uint8_t>(10 + current - 'a'); |
| 23 | return true; |
| 24 | } |
| 25 | if (current >= 'A' and current <= 'F') |
| 26 | { |
| 27 | value = static_cast<uint8_t>(10 + current - 'A'); |
| 28 | return true; |
| 29 | } |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | static bool scHttpTransferEncodingIsChunked(SC::StringSpan value) |
| 34 | { |