MCPcopy Create free account
hub / github.com/acl-dev/acl / http_post_ok

Function http_post_ok

app/wizard/tmpl/http/main_threads.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static bool http_post_ok(HttpRequest& req, HttpResponse& res)
37{
38 acl::string buf;
39 if (!req.getBody(buf)) {
40 printf("getBody error!\r\n");
41 return false;
42 }
43
44 printf("body: %s\r\n", buf.c_str());
45 res.setContentLength(buf.size());
46 return res.write(buf);
47}
48
49static bool http_get_json(HttpRequest&, HttpResponse& res)
50{

Callers

nothing calls this directly

Calls 4

getBodyMethod · 0.80
c_strMethod · 0.45
sizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…