![]() |
TrinityCore
|
#include <HttpService.h>
Inheritance diagram for Trinity::Net::Http::DispatcherService:Public Member Functions | |
| DispatcherService (std::string_view loggerSuffix) | |
| RequestHandlerResult | HandleRequest (std::shared_ptr< AbstractSocket > session, RequestContext &context) |
Static Public Member Functions | |
| static RequestHandlerResult | HandleBadRequest (std::shared_ptr< AbstractSocket > session, RequestContext &context) |
| static RequestHandlerResult | HandleUnauthorized (std::shared_ptr< AbstractSocket > session, RequestContext &context) |
| static RequestHandlerResult | HandlePathNotFound (std::shared_ptr< AbstractSocket > session, RequestContext &context) |
Protected Member Functions | |
| void | RegisterHandler (boost::beast::http::verb method, std::string_view path, std::function< RequestHandlerResult(std::shared_ptr< AbstractSocket > session, RequestContext &context)> handler, RequestHandlerFlag flags=RequestHandlerFlag::None) |
Private Types | |
| using | HttpMethodHandlerMap = std::map< std::string, RequestHandler, std::less<> > |
Private Attributes | |
| HttpMethodHandlerMap | _getHandlers |
| HttpMethodHandlerMap | _postHandlers |
| std::string | _logger |
Definition at line 54 of file HttpService.h.
|
private |
Definition at line 74 of file HttpService.h.
|
inlineexplicit |
Definition at line 57 of file HttpService.h.
|
static |
Definition at line 85 of file HttpService.cpp.
|
static |
Definition at line 97 of file HttpService.cpp.
| RequestHandlerResult Trinity::Net::Http::DispatcherService::HandleRequest | ( | std::shared_ptr< AbstractSocket > | session, |
| RequestContext & | context | ||
| ) |
|
static |
|
protected |
Definition at line 103 of file HttpService.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 76 of file HttpService.h.
|
private |
Definition at line 79 of file HttpService.h.
|
private |
Definition at line 77 of file HttpService.h.