| 557 | } |
| 558 | |
| 559 | void HTTPRequest::StopWritingChunks() { |
| 560 | HTTPEvent *ev = new HTTPEvent(eventBase, true, std::bind(evhttp_send_reply_end, req)); |
| 561 | ev->trigger(nullptr); |
| 562 | |
| 563 | replySent = true; |
| 564 | req = 0; |
| 565 | } |
| 566 | |
| 567 | CService HTTPRequest::GetPeer() { |
| 568 | evhttp_connection *con = evhttp_request_get_connection(req); |
no test coverage detected