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

Function th_http

tests/test_httpd.c:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static int th_http(int port, const char *request, char *resp, size_t respsz) {
199 char *prepared = th_request_with_ui_headers(port, request);
200 if (!prepared)
201 return 0;
202 int result = th_http_raw(port, prepared, resp, respsz);
203 free(prepared);
204 return result;
205}
206
207/* HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */
208static int th_status(const char *resp) {

Callers 7

ui_delete_requestFunction · 0.85
ui_adr_post_requestFunction · 0.85
ui_adr_get_requestFunction · 0.85
test_httpd.cFile · 0.85
ui_log_postFunction · 0.85
th_ui_index_probeFunction · 0.85
ui_health_matchesFunction · 0.85

Calls 2

th_http_rawFunction · 0.85

Tested by

no test coverage detected