roar
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Roar::Session::Implementation Struct Reference
Collaboration diagram for Roar::Session::Implementation:

Public Member Functions

 Implementation (boost::asio::ip::tcp::socket &&socket, boost::beast::flat_buffer &&buffer, std::optional< std::variant< SslServerContext, boost::asio::ssl::context > > &sslContext, bool isSecure, std::function< void(Error &&)> onError, std::weak_ptr< Router > router, std::shared_ptr< const StandardResponseProvider > standardResponseProvider)
 
template<typename FunctionT >
void withStreamDo (FunctionT &&func)
 

Public Attributes

std::variant< Detail::StreamType, boost::beast::ssl_stream< Detail::StreamType > > stream
 
boost::beast::flat_buffer buffer
 
bool isSecure
 
std::function< void(Error &&)> onError
 
std::weak_ptr< Routerrouter
 
std::shared_ptr< boost::beast::http::request_parser< boost::beast::http::empty_body > > headerParser
 
RouteOptions routeOptions
 
std::shared_ptr< const StandardResponseProviderstandardResponseProvider
 

Constructor & Destructor Documentation

◆ Implementation()

Roar::Session::Implementation::Implementation ( boost::asio::ip::tcp::socket &&  socket,
boost::beast::flat_buffer &&  buffer,
std::optional< std::variant< SslServerContext, boost::asio::ssl::context > > &  sslContext,
bool  isSecure,
std::function< void(Error &&)>  onError,
std::weak_ptr< Router router,
std::shared_ptr< const StandardResponseProvider standardResponseProvider 
)
inline

Member Function Documentation

◆ withStreamDo()

template<typename FunctionT >
void Roar::Session::Implementation::withStreamDo ( FunctionT &&  func)
inline

Member Data Documentation

◆ buffer

boost::beast::flat_buffer Roar::Session::Implementation::buffer

◆ headerParser

std::shared_ptr<boost::beast::http::request_parser<boost::beast::http::empty_body> > Roar::Session::Implementation::headerParser

◆ isSecure

bool Roar::Session::Implementation::isSecure

◆ onError

std::function<void(Error&&)> Roar::Session::Implementation::onError

◆ routeOptions

RouteOptions Roar::Session::Implementation::routeOptions

◆ router

std::weak_ptr<Router> Roar::Session::Implementation::router

◆ standardResponseProvider

std::shared_ptr<const StandardResponseProvider> Roar::Session::Implementation::standardResponseProvider

◆ stream

std::variant<Detail::StreamType, boost::beast::ssl_stream<Detail::StreamType> > Roar::Session::Implementation::stream

The documentation for this struct was generated from the following file: