| 513 | } |
| 514 | |
| 515 | void HTTPRequest::WriteHeader(const std::string &hdr, |
| 516 | const std::string &value) { |
| 517 | struct evkeyvalq *headers = evhttp_request_get_output_headers(req); |
| 518 | assert(headers); |
| 519 | evhttp_add_header(headers, hdr.c_str(), value.c_str()); |
| 520 | } |
| 521 | |
| 522 | /** Closure sent to main thread to request a reply to be sent to a HTTP request. |
| 523 | * Replies must be sent in the main loop in the main http thread, this cannot be |
no outgoing calls
no test coverage detected