| 1243 | } |
| 1244 | |
| 1245 | void 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 | |
| 1259 | void http_client::sprint_header(string& out, const char* prompt /* = NULL */) |
| 1260 | { |
nothing calls this directly
no test coverage detected