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

Method do_plain

lib_acl_cpp/samples/http_request/main.cpp:86–96  ·  view source on GitHub ↗

���� text/plain ��������

Source from the content-addressed store, hash-verified

84private:
85 // ���� text/plain ��������
86 bool do_plain(acl::http_request& req)
87 {
88 acl::string body;
89 if (req.get_body(body, to_charset_) == false)
90 {
91 logger_error("get http body error");
92 return false;
93 }
94 printf("body:\r\n(%s)\r\n", body.c_str());
95 return true;
96 }
97
98 // ���� text/xml ��������
99 bool do_xml(acl::http_request& req)

Callers

nothing calls this directly

Calls 2

get_bodyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected