ESP32 HTTPS Server

HTTPMiddlewareFunction.hpp
1 #ifndef SRC_HTTPMIDDLEWAREFUNCTION_HPP_
2 #define SRC_HTTPMIDDLEWAREFUNCTION_HPP_
3
4 #include <functional>
5
6 #include "HTTPRequest.hpp"
7 #include "HTTPResponse.hpp"
8 #include "HTTPSCallbackFunction.hpp"
9
10 namespace httpsserver {
11 class HTTPRequest;
24 typedef void (HTTPSMiddlewareFunction)(HTTPRequest * req, HTTPResponse * res, std::function<void()> next);
25 }
26 #endif /* SRC_HTTPMIDDLEWAREFUNCTION_HPP_ */
httpsserver::HTTPRequest
Represents the request stream for an HTTP request.
Definition: HTTPRequest.hpp:21
httpsserver::HTTPResponse
Represents the response stream of an HTTP request.
Definition: HTTPResponse.hpp:25
httpsserver
Definition: ConnectionContext.cpp:3
httpsserver::HTTPSMiddlewareFunction
void() HTTPSMiddlewareFunction(HTTPRequest *req, HTTPResponse *res, std::function< void()> next)
A middleware function that can be registered at the server.
Definition: HTTPMiddlewareFunction.hpp:24