Webserv
Loading...
Searching...
No Matches
Handler.hpp File Reference
#include "http/MimeTypes.hpp"
#include "http/Request.hpp"
#include "http/Response.hpp"

Go to the source code of this file.

Classes

class  http::IHandler
 Abstract interface for all request handlers (Strategy Pattern). More...
class  http::StaticFileHandler
 Handles serving static files from the filesystem. More...
class  http::HeadHeaderHandler
class  http::ReturnHandler
class  http::FileUploadHandler
class  http::FileDeleteHandler
class  http::JsonErrorHandler
class  http::DefaultErrorHandler

Namespaces

namespace  http

Macros

#define CHECK_FOR_SERVER_AND_LOCATION(req, res)

Macro Definition Documentation

◆ CHECK_FOR_SERVER_AND_LOCATION

#define CHECK_FOR_SERVER_AND_LOCATION ( req,
res )
Value:
if (!req.location() || !req.server()) \
return (void)res.status(NOT_FOUND)