Webserv
Loading...
Searching...
No Matches
http::RouterResult Struct Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ RouterResult()

http::RouterResult::RouterResult ( IHandler const & h,
config::ServerBlock const * s = NULL,
config::LocationBlock const * l = NULL )
inline

Member Data Documentation

◆ handler

IHandler const& http::RouterResult::handler

The selected handler for the request.

◆ location

config::LocationBlock const* http::RouterResult::location

The matched location block context.

◆ server

config::ServerBlock const* http::RouterResult::server

The matched server block context.


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