Webserv
|
Abstract interface for all request handlers (Strategy Pattern). More...
#include <Handler.hpp>
Public Member Functions | |
virtual | ~IHandler () |
virtual HttpResponse | handle (HttpRequest const &, config::ServerBlock const *, config::LocationBlock const *) const =0 |
The primary handler logic entry point. | |
HttpResponse | handle (HttpRequest const &h, RouterResult const &r) const |
Convenience overload to handle a request using a RouterResult. |
Abstract interface for all request handlers (Strategy Pattern).
Defines the contract for stateless handler objects that process HTTP requests.
|
inlinevirtual |
|
pure virtual |
The primary handler logic entry point.
request | The client's HTTP request. |
server | The matched server configuration context. |
location | The matched location configuration context. |
Implemented in http::CGIHandler, http::DefaultErrorHandler, http::NotFoundHandler, and http::StaticFileHandler.
|
inline |
Convenience overload to handle a request using a RouterResult.