TrinityCore
Trinity::Net::Http Namespace Reference

Namespaces

namespace  Impl
 

Classes

class  AbstractSocket
 
class  BaseSocket
 
class  DispatcherService
 
class  HttpService
 
struct  RequestContext
 
struct  RequestHandler
 
class  SessionService
 
struct  SessionState
 
class  Socket
 
class  SslSocket
 

Concepts

concept  HttpRequestHandler
 

Typedefs

using RequestSerializer = boost::beast::http::request_serializer< ResponseBody >
 
using ResponseSerializer = boost::beast::http::response_serializer< ResponseBody >
 
using RequestParser = boost::beast::http::request_parser< RequestBody >
 
using RequestBody = boost::beast::http::string_body
 
using ResponseBody = boost::beast::http::string_body
 
using Request = boost::beast::http::request< RequestBody >
 
using Response = boost::beast::http::response< ResponseBody >
 

Enumerations

enum class  RequestHandlerResult { Handled , Error , Async }
 
enum class  RequestHandlerFlag { None = 0x0 , DoNotLogRequestContent = 0x1 , DoNotLogResponseContent = 0x2 }
 

Functions

TC_SHARED_API bool CanLogRequestContent (RequestContext const &context)
 
TC_SHARED_API bool CanLogResponseContent (RequestContext const &context)
 
std::string_view ToStdStringView (boost::beast::string_view bsw)
 
 DEFINE_ENUM_FLAG (RequestHandlerFlag)
 

Typedef Documentation

◆ Request

using Trinity::Net::Http::Request = typedef boost::beast::http::request<RequestBody>

Definition at line 30 of file HttpCommon.h.

◆ RequestBody

using Trinity::Net::Http::RequestBody = typedef boost::beast::http::string_body

Definition at line 27 of file HttpCommon.h.

◆ RequestParser

using Trinity::Net::Http::RequestParser = typedef boost::beast::http::request_parser<RequestBody>

Definition at line 35 of file BaseHttpSocket.h.

◆ RequestSerializer

using Trinity::Net::Http::RequestSerializer = typedef boost::beast::http::request_serializer<ResponseBody>

Definition at line 23 of file BaseHttpSocket.cpp.

◆ Response

using Trinity::Net::Http::Response = typedef boost::beast::http::response<ResponseBody>

Definition at line 31 of file HttpCommon.h.

◆ ResponseBody

using Trinity::Net::Http::ResponseBody = typedef boost::beast::http::string_body

Definition at line 28 of file HttpCommon.h.

◆ ResponseSerializer

using Trinity::Net::Http::ResponseSerializer = typedef boost::beast::http::response_serializer<ResponseBody>

Definition at line 24 of file BaseHttpSocket.cpp.

Enumeration Type Documentation

◆ RequestHandlerFlag

Enumerator
None 
DoNotLogRequestContent 
DoNotLogResponseContent 

Definition at line 39 of file HttpService.h.

◆ RequestHandlerResult

Enumerator
Handled 
Error 
Async 

Definition at line 48 of file HttpCommon.h.

Function Documentation

◆ CanLogRequestContent()

bool Trinity::Net::Http::CanLogRequestContent ( RequestContext const &  context)

Definition at line 28 of file HttpService.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanLogResponseContent()

bool Trinity::Net::Http::CanLogResponseContent ( RequestContext const &  context)

Definition at line 33 of file HttpService.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DEFINE_ENUM_FLAG()

Trinity::Net::Http::DEFINE_ENUM_FLAG ( RequestHandlerFlag  )

◆ ToStdStringView()

std::string_view Trinity::Net::Http::ToStdStringView ( boost::beast::string_view  bsw)
inline

Definition at line 43 of file HttpCommon.h.

+ Here is the caller graph for this function: