8 #ifndef _UWSGI_THRIFT_ASYNC_HANDLER_H_
9 #define _UWSGI_THRIFT_ASYNC_HANDLER_H_
21 template <
class thrift_result_type,
22 class thrift_args_type>
62 virtual void service(std::shared_ptr<args_t> args) = 0;
87 #endif // _UWSGI_THRIFT_ASYNC_HANDLER_H_
The HTTP response implementation.
auto result() -> decltype((m_result.success))
Return a reference to the thrift result object. A thrift handler uses this to return data...
http_response & response()
uwsgi_request * request_p()
const uwsgi_request * request_p() const
uwsgi_task * m_uwsgi_task
const uwsgi_request & request() const
handler_finish_func_t m_finish_func
virtual ~uwsgi_thrift_async_handler()
A helper class for basic error reporting.
void set_error(std::string msg)
Report an error.
The base class for the uwsgi protocol implementation.
The uwsgi protocol implementation for a request. The response is a HTTP/1.1 response.
virtual std::string service_name() const =0
http_response * response_p()
http_response & response()
IpService_lookup_args args_t
result_t & result_base()
Return a reference to the thrift result base object.
virtual void service(std::shared_ptr< args_t > args)=0
std::function< void()> handler_finish_func_t
void set_exception(tasks_exception &e)
Set an exception to report an error.
void set_uwsgi_task(uwsgi_task *t)
The uwsgi_thrift_async_processor uses this method to assign the underlying uwsgi_task object...
http_response * response_p()
uwsgi_request & request()
void on_finish(handler_finish_func_t f)
void finish()
Async handlers call this method to trigger the processor callback.
IpService_lookup_result result_t