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

Method do_plain

lib_acl_cpp/samples/ssl/https_request/https_request.cpp:79–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool https_request::do_plain(acl::http_request& req)
80{
81 printf("Begin get body in plain\r\n");
82
83 acl::string body;
84 if (!req.get_body(body, to_charset_)) {
85 logger_error("get http body error");
86 return false;
87 }
88
89 if (debug_) {
90 printf("plain body:\r\n(%s)\r\n", body.c_str());
91 } else {
92 printf("plain body length: %zd\r\n", body.size());
93 }
94
95 return true;
96}
97
98bool https_request::do_xml(acl::http_request& req)
99{

Callers

nothing calls this directly

Calls 3

get_bodyMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected