| 305 | } |
| 306 | |
| 307 | bool SC::HttpParser::matchesHeader(HeaderType headerName) const |
| 308 | { |
| 309 | auto headerIndex = static_cast<size_t>(headerName); |
| 310 | if (headerIndex >= numMatches) |
| 311 | return false; |
| 312 | return matchingHeaderValid[headerIndex]; |
| 313 | } |
| 314 | |
| 315 | template <bool (SC::HttpParser::*Func)(char), SC::HttpParser::Token currentResult> |
| 316 | SC::Result SC::HttpParser::process(Span<const char>& data, size_t& readBytes, Span<const char>& parsedData) |
no outgoing calls