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

Function cbm_http_path_match

src/ui/httpd.c:573–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571/* ── Pure helpers ─────────────────────────────────────────────── */
572
573bool cbm_http_path_match(const char *str, const char *pattern) {
574 if (!str || !pattern)
575 return false;
576 size_t plen = strlen(pattern);
577 if (plen > 0 && pattern[plen - 1] == '*')
578 return strncmp(str, pattern, plen - 1) == 0;
579 return strcmp(str, pattern) == 0;
580}
581
582static int hex_val(char ch) {
583 if (ch >= '0' && ch <= '9')

Callers 4

update_corsFunction · 0.85
host_is_loopbackFunction · 0.85
dispatch_requestFunction · 0.85
test_httpd.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected