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

Method containsMethod

Libraries/Http/HttpRouter.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 static bool containsMethod(Span<HttpParser::Method> methods, size_t count, HttpParser::Method method)
79 {
80 for (size_t idx = 0; idx < count; ++idx)
81 {
82 if (methods[idx] == method)
83 {
84 return true;
85 }
86 }
87 return false;
88 }
89
90 static HttpRouteMatchStatus matchPath(StringSpan pattern, StringSpan requestPath, Span<HttpRouteParam> params,
91 size_t& numParams)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected