Webserv
|
A data container for the result of a routing decision. More...
#include <RouterResult.hpp>
Public Member Functions | |
RouterResult (IHandler const &h, config::ServerBlock const *s=NULL, config::LocationBlock const *l=NULL) |
Public Attributes | |
IHandler const & | handler |
The selected handler for the request. | |
config::ServerBlock const * | server |
The matched server block context. | |
config::LocationBlock const * | location |
The matched location block context. |
A data container for the result of a routing decision.
This struct packages the selected handler and its relevant configuration context to be used by the main server loop.
|
inline |
IHandler const& http::RouterResult::handler |
The selected handler for the request.
config::LocationBlock const* http::RouterResult::location |
The matched location block context.
config::ServerBlock const* http::RouterResult::server |
The matched server block context.