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

Function ui_adr_get_request

tests/test_httpd.c:745–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745static int ui_adr_get_request(th_server_t *ts, const char *project, char *resp, size_t respsz) {
746 char req[512];
747 int req_len = snprintf(req, sizeof(req), "GET /api/adr?project=%s HTTP/1.1\r\n\r\n", project);
748 if (req_len < 0 || (size_t)req_len >= sizeof(req))
749 return 0;
750 return th_http(cbm_http_server_port(ts->srv), req, resp, respsz);
751}
752
753static int ui_adr_seed(const ui_delete_fixture_t *fx, const char *project, const char *content) {
754 char db_path[1024];

Callers 1

test_httpd.cFile · 0.85

Calls 2

th_httpFunction · 0.85
cbm_http_server_portFunction · 0.85

Tested by

no test coverage detected