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

Method doUnknown

lib_acl_cpp/samples/ssl/https_server/http_servlet.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool http_servlet::doUnknown(acl::HttpServletRequest&,
15 acl::HttpServletResponse& res)
16{
17 res.setStatus(400);
18 res.setContentType("text/html; charset=");
19 // ���� http ��Ӧͷ
20 if (res.sendHeader() == false)
21 return false;
22 // ���� http ��Ӧ��
23 acl::string buf("<root error='unkown request method' />\r\n");
24 (void) res.getOutputStream().write(buf);
25 return false;
26}
27
28bool http_servlet::doGet(acl::HttpServletRequest& req,
29 acl::HttpServletResponse& res)

Callers

nothing calls this directly

Calls 3

setContentTypeMethod · 0.80
sendHeaderMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected