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

Function http_get_default

app/wizard/tmpl/http/main_fiber.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10#ifndef USE_LAMBDA
11static bool http_get_default(const char* path, HttpRequest& req, HttpResponse& res)
12{
13 acl::string buf, method_buf;
14 acl::http_method_t method = req.getMethod(&method_buf);
15 buf.format("%s: hello world!, method=%d, %s\r\n",
16 path, (int) method, method_buf.c_str());
17 res.setContentLength(buf.size());
18 return res.write(buf);
19}
20#endif
21
22static bool http_get_root(HttpRequest&, HttpResponse& res)

Callers

nothing calls this directly

Calls 5

getMethodMethod · 0.80
formatMethod · 0.45
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…