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

Function th_http

tests/test_httpd.c:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static int th_http(int port, const char *request, char *resp, size_t respsz) {
185 char *prepared = th_request_with_ui_headers(port, request);
186 if (!prepared)
187 return 0;
188 int result = th_http_raw(port, prepared, resp, respsz);
189 free(prepared);
190 return result;
191}
192
193/* HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */
194static int th_status(const char *resp) {

Callers 4

ui_delete_requestFunction · 0.85
ui_adr_post_requestFunction · 0.85
ui_adr_get_requestFunction · 0.85
test_httpd.cFile · 0.85

Calls 2

th_http_rawFunction · 0.85

Tested by

no test coverage detected