| 100 | } |
| 101 | |
| 102 | void TEvhttpServer::request(struct evhttp_request* req, void* self) { |
| 103 | try { |
| 104 | static_cast<TEvhttpServer*>(self)->process(req); |
| 105 | } catch (std::exception& e) { |
| 106 | evhttp_send_reply(req, HTTP_INTERNAL, e.what(), nullptr); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | void TEvhttpServer::process(struct evhttp_request* req) { |
| 111 | auto* ctx = new RequestContext(req); |
no test coverage detected