Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
util::http::HttpHandler Class Reference
+ Inheritance diagram for util::http::HttpHandler:
+ Collaboration diagram for util::http::HttpHandler:

Public Types

using RequestType = ::boost::beast::http::request<::boost::beast::http::string_body >
 
using SendFunction = ListenerBase::SendFunction
 
- Public Types inherited from util::ConnectionHandler
using ptr_t = ::boost::intrusive_ptr< ConnectionHandler >
 
using io_context = ::boost::asio::io_context
 
using member_hook_t = detail::member_hook< ConnectionHandler, detail::connection_hook, &ConnectionHandler::hook_ >
 
using flush_hook_t = detail::member_hook< ConnectionHandler, detail::connection_hook, &ConnectionHandler::flush_hook_ >
 

Public Member Functions

 HttpHandler (const ListenerBase *registry, IoContext *cntx)
 
boost::system::error_code HandleRequest () final override
 
- Public Member Functions inherited from util::ConnectionHandler
 ConnectionHandler (IoContext *context) noexcept
 
void Init (::boost::asio::ip::tcp::socket &&sock)
 
void Close ()
 
IoContextcontext ()
 

Protected Member Functions

virtual bool Authorize (const QueryArgs &args) const
 
- Protected Member Functions inherited from util::ConnectionHandler
virtual bool FlushWrites ()
 Called to flush pending writes to the socket. Returns true if flush took place,.
 
virtual void OnOpenSocket ()
 Called once after connection was initialized. Will run in io context thread of this handler.
 
virtual void OnCloseSocket ()
 Called before ConnectionHandler destroyed but after the socket was signalled to stop and shutdown. More...
 

Protected Attributes

const char * favicon_
 
const char * resource_prefix_
 
- Protected Attributes inherited from util::ConnectionHandler
absl::optional< FiberSyncSocketsocket_
 
IoContextio_context_
 
bool use_flusher_fiber_ = false
 

Detailed Description

Definition at line 68 of file http_conn_handler.h.


The documentation for this class was generated from the following files: