12 #include <unordered_map>
24 #define UWSGI_KEEPALIVE 0
85 #endif // _UWSGI_TASK_H_
The HTTP response implementation.
http_response & response()
uwsgi_request * request_p()
The net_io_task implements the base for socket based network tasks.
uwsgi_task(net::socket &sock)
static worker * get()
Provide access to the executing worker thread object in the current thread context.
const http_response * response_p() const
void clear()
Reset the http object.
void send_response()
Send the resonse back.
virtual void update_watcher(worker *worker)
Udate a watcher in the context of the given worker.
The base class for the uwsgi protocol implementation.
The uwsgi protocol implementation for a request. The response is a HTTP/1.1 response.
void finish_request()
Called after a request has been responded.
const http_response & response() const
http_response * response_p()
uwsgi_request & request()
bool handle_event(tasks::worker *worker, int revents)
void set_events(int events)
Update the events the object monitors.
virtual bool handle_request()=0
const uwsgi_request & request() const
const uwsgi_request * request_p() const