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

Method doPost

lib_fiber/samples-gui/WinFiber/HttpServlet.h:16–27  ·  view source on GitHub ↗

override

Source from the content-addressed store, hash-verified

14
15 // override
16 bool doPost(acl::HttpServletRequest& req, acl::HttpServletResponse& res) {
17 static int __n = 0;
18
19 acl::string buf;
20 buf.format("hello world, i=%d, n=%d", i_++, __n++);
21
22 res.setContentLength(buf.size());
23 res.setKeepAlive(req.isKeepAlive());
24
25 // ���� http ��Ӧ��
26 return res.write(buf) && res.write(NULL, 0);
27 }
28
29private:
30 int i_;

Callers

nothing calls this directly

Calls 4

isKeepAliveMethod · 0.80
formatMethod · 0.45
sizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected