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

Function requestHasHeader

Libraries/HttpClient/HttpClient.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static bool requestHasHeader(const SC::HttpClientRequest& request, SC::StringSpan name)
126{
127 for (size_t idx = 0; idx < request.headers.sizeInElements(); ++idx)
128 {
129 if (asciiEqualsIgnoreCase(request.headers[idx].name, name))
130 {
131 return true;
132 }
133 }
134 return false;
135}
136
137static bool isValidRequestMethod(SC::HttpClientRequest::Method method)
138{

Callers 1

Calls 1

asciiEqualsIgnoreCaseFunction · 0.85

Tested by

no test coverage detected