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

Method fprint_header

lib_acl_cpp/src/http/http_client.cpp:1245–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243}
1244
1245void http_client::fprint_header(ostream& out, const char* prompt /* = NULL */)
1246{
1247 ACL_VSTREAM* fp = out.get_vstream();
1248 if (fp == NULL) {
1249 logger_error("fp stream null");
1250 return;
1251 }
1252 if (hdr_res_) {
1253 http_hdr_fprint(fp, &hdr_res_->hdr, prompt);
1254 } else if (hdr_req_) {
1255 http_hdr_fprint(fp, &hdr_req_->hdr, prompt);
1256 }
1257}
1258
1259void http_client::sprint_header(string& out, const char* prompt /* = NULL */)
1260{

Callers

nothing calls this directly

Calls 2

http_hdr_fprintFunction · 0.85
get_vstreamMethod · 0.45

Tested by

no test coverage detected