| 687 | } |
| 688 | |
| 689 | void HTTPRequest::WriteHeader(const std::string &hdr, |
| 690 | const std::string &value) { |
| 691 | struct evkeyvalq *headers = evhttp_request_get_output_headers(req); |
| 692 | assert(headers); |
| 693 | evhttp_add_header(headers, hdr.c_str(), value.c_str()); |
| 694 | } |
| 695 | |
| 696 | /** |
| 697 | * Closure sent to main thread to request a reply to be sent to a HTTP request. |
no outgoing calls