MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / matchesHeader

Method matchesHeader

Libraries/Http/HttpParser.cpp:307–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307bool 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
315template <bool (SC::HttpParser::*Func)(char), SC::HttpParser::Token currentResult>
316SC::Result SC::HttpParser::process(Span<const char>& data, size_t& readBytes, Span<const char>& parsedData)

Callers 2

tryParseResponseMethod · 0.80
HttpParserTestMethod · 0.80

Calls

no outgoing calls

Tested by 2

tryParseResponseMethod · 0.64
HttpParserTestMethod · 0.64