MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DoraXrtHttpHasHeader

Function DoraXrtHttpHasHeader

Source/Http/XrtHttpClient.c:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static int DoraXrtHttpHasHeader(const char* const* headerNames, size_t headerCount, const char* name) {
259 if (!headerNames || !name) {
260 return 0;
261 }
262 for (size_t i = 0; i < headerCount; ++i) {
263 if (headerNames[i] && __xhttpStrEqNoCase(headerNames[i], name)) {
264 return 1;
265 }
266 }
267 return 0;
268}
269
270static char* DoraXrtHttpTrim(char* text) {
271 char* end;

Callers 2

DoraXrtHttpExecuteOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected