Webserv
Loading...
Searching...
No Matches
http::NotFoundHandler Class Reference

Handles the generation of not found(404). More...

#include <Handler.hpp>

Inheritance diagram for http::NotFoundHandler:
http::IHandler

Public Member Functions

HttpResponse handle (HttpRequest const &req, config::ServerBlock const *s=NULL, config::LocationBlock const *l=NULL) const
 The primary handler logic entry point.
Public Member Functions inherited from http::IHandler
virtual ~IHandler ()
HttpResponse handle (HttpRequest const &h, RouterResult const &r) const
 Convenience overload to handle a request using a RouterResult.

Detailed Description

Handles the generation of not found(404).

Member Function Documentation

◆ handle()

HttpResponse http::NotFoundHandler::handle ( HttpRequest const & ,
config::ServerBlock const * = NULL,
config::LocationBlock const * = NULL ) const
virtual

The primary handler logic entry point.

Parameters
requestThe client's HTTP request.
serverThe matched server configuration context.
locationThe matched location configuration context.
Returns
An HttpResponse object representing the result of the handling.

Implements http::IHandler.


The documentation for this class was generated from the following files: