| 86 | } |
| 87 | |
| 88 | int TEvhttpServer::serve() { |
| 89 | if (eb_ == nullptr) { |
| 90 | throw TException("Unexpected call to TEvhttpServer::serve"); |
| 91 | } |
| 92 | return event_base_dispatch(eb_); |
| 93 | } |
| 94 | |
| 95 | TEvhttpServer::RequestContext::RequestContext(struct evhttp_request* req) |
| 96 | : req(req), |