| 630 | } |
| 631 | |
| 632 | void HTTPRequest::WriteHeader(const std::string &hdr, const std::string &value) |
| 633 | { |
| 634 | struct evkeyvalq *headers = evhttp_request_get_output_headers(req); |
| 635 | assert(headers); |
| 636 | evhttp_add_header(headers, hdr.c_str(), value.c_str()); |
| 637 | } |
| 638 | |
| 639 | /** Closure sent to main thread to request a reply to be sent to |
| 640 | * a HTTP request. |
no outgoing calls
no test coverage detected