MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / header_name_is

Function header_name_is

src/ui/httpd.c:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228/* ── Head parsing ─────────────────────────────────────────────── */
229
230static bool header_name_is(const char *line, size_t name_len, const char *name) {
231 for (size_t i = 0; i < name_len; i++) {
232 if (tolower((unsigned char)line[i]) != name[i])
233 return false;
234 }
235 return name[name_len] == '\0' ? true : false;
236}
237
238/* Copy a trimmed header value into out. */
239static void copy_header_value(const char *val, const char *val_end, char *out, size_t outsz) {

Callers 1

cbm_http_parse_headFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected