| 587 | } |
| 588 | |
| 589 | void HTTPRequest::WriteHeader(const std::string& hdr, const std::string& value) |
| 590 | { |
| 591 | struct evkeyvalq* headers = evhttp_request_get_output_headers(req); |
| 592 | assert(headers); |
| 593 | evhttp_add_header(headers, hdr.c_str(), value.c_str()); |
| 594 | } |
| 595 | |
| 596 | /** Closure sent to main thread to request a reply to be sent to |
| 597 | * a HTTP request. |
no outgoing calls
no test coverage detected