roar
|
#include <server.hpp>
Public Attributes | |
boost::asio::any_io_executor | executor |
Required io executor for boost::asio. | |
std::optional< std::variant< SslServerContext, boost::asio::ssl::context > > | sslContext |
Supply for SSL support. | |
std::function< void(Error &&)> | onError = [](auto&&) {} |
Called when an error occurs in an asynchronous routine. | |
std::function< void(boost::system::error_code)> | onAcceptAbort = [](auto) {} |
Called when the server stops accepting connections for error reasons. | |
std::unique_ptr< StandardResponseProvider > | standardResponseProvider |
boost::asio::any_io_executor Roar::Server::ConstructionArguments::executor |
Required io executor for boost::asio.
std::function<void(boost::system::error_code)> Roar::Server::ConstructionArguments::onAcceptAbort = [](auto) {} |
Called when the server stops accepting connections for error reasons.
std::function<void(Error&&)> Roar::Server::ConstructionArguments::onError = [](auto&&) {} |
Called when an error occurs in an asynchronous routine.
std::optional<std::variant<SslServerContext, boost::asio::ssl::context> > Roar::Server::ConstructionArguments::sslContext |
Supply for SSL support.
std::unique_ptr<StandardResponseProvider> Roar::Server::ConstructionArguments::standardResponseProvider |
Sometimes the server has to respond with error codes outside the library users scope. So this class provides responses for errors like 404 or 500.