ESP32 HTTPS Server
|
This class is used internally to resolve a string URL to the corresponding HTTPNode. More...
#include <ResourceResolver.hpp>
Public Member Functions | |
void | registerNode (HTTPNode *node) |
void | unregisterNode (HTTPNode *node) |
void | setDefaultNode (HTTPNode *node) |
void | resolveNode (const std::string &method, const std::string &url, ResolvedResource &resolvedResource, HTTPNodeType nodeType) |
void | addMiddleware (const HTTPSMiddlewareFunction *mwFunction) |
void | removeMiddleware (const HTTPSMiddlewareFunction *mwFunction) |
const std::vector< HTTPSMiddlewareFunction * > | getMiddleware () |
This class is used internally to resolve a string URL to the corresponding HTTPNode.
void httpsserver::ResourceResolver::addMiddleware | ( | const HTTPSMiddlewareFunction * | mwFunction | ) |
Add a middleware function to the end of the middleware function chain. See HTTPSMiddlewareFunction.hpp for details.
const std::vector< HTTPSMiddlewareFunction * > httpsserver::ResourceResolver::getMiddleware | ( | ) |
Get the current middleware chain with a resource function at the end
void httpsserver::ResourceResolver::registerNode | ( | HTTPNode * | node | ) |
This method will register the HTTPSNode so it is reachable and its callback gets called for a request
void httpsserver::ResourceResolver::removeMiddleware | ( | const HTTPSMiddlewareFunction * | mwFunction | ) |
Remove a specific function from the middleware function chain.
void httpsserver::ResourceResolver::unregisterNode | ( | HTTPNode * | node | ) |
This method can be used to deactivate a HTTPSNode that has been registered previously