Webserv
Loading...
Searching...
No Matches
RouterResult.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace http {
7
8class IHandler;
9
18 RouterResult(IHandler const &h, config::ServerBlock const *s = NULL,
19 config::LocationBlock const *l = NULL)
20 : handler(h), server(s), location(l) {
21 }
22
26};
27
28} // namespace http
Represents a single 'location' block from the configuration file.
Definition LocationBlock.hpp:16
Represents a single 'server' block from the configuration file.
Definition ServerBlock.hpp:18
Abstract interface for all request handlers (Strategy Pattern).
Definition Handler.hpp:18
Definition error_pages.hpp:7
IHandler const & handler
The selected handler for the request.
Definition RouterResult.hpp:23
RouterResult(IHandler const &h, config::ServerBlock const *s=NULL, config::LocationBlock const *l=NULL)
Definition RouterResult.hpp:18
config::ServerBlock const * server
The matched server block context.
Definition RouterResult.hpp:24
config::LocationBlock const * location
The matched location block context.
Definition RouterResult.hpp:25