/* static */ void TEvhttpClientChannel::response(struct evhttp_request* req, void* arg) { TEvhttpClientChannel* self = (TEvhttpClientChannel*)arg; try { self->finish(req); } catch (std::exception& e) { // don't propagate a C++ exception in C code (e.g. libevent) std::cerr << "TEvhttpClientChannel::response exception thrown (ignored): " << e.what() << std::endl; } }
/* static */ void TEvhttpClientChannel::response(struct evhttp_request* req, void* arg) { TEvhttpClientChannel* self = (TEvhttpClientChannel*)arg; self->finish(req); }