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

Function th_status

tests/test_httpd.c:208–212  ·  view source on GitHub ↗

HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */

Source from the content-addressed store, hash-verified

206
207/* HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */
208static int th_status(const char *resp) {
209 if (strncmp(resp, "HTTP/1.1 ", 9) != 0)
210 return -1;
211 return atoi(resp + 9);
212}
213
214/* ── Parser unit tests ────────────────────────────────────────── */
215

Callers 3

test_httpd.cFile · 0.85
th_ui_index_probeFunction · 0.85
ui_health_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected