ESP32 HTTPS Server
ResolvedResource.hpp
1 #ifndef SRC_RESOLVEDRESOURCE_HPP_
2 #define SRC_RESOLVEDRESOURCE_HPP_
3 
4 #include "ResourceNode.hpp"
5 #include "ResourceParameters.hpp"
6 
7 namespace httpsserver {
8 
13 public:
16 
17  void setMatchingNode(HTTPNode * node);
18  HTTPNode * getMatchingNode();
19  bool didMatch();
20  ResourceParameters * getParams();
21  void setParams(ResourceParameters * params);
22 
23 private:
24  HTTPNode * _matchingNode;
25  ResourceParameters * _params;
26 };
27 
28 } /* namespace httpsserver */
29 
30 #endif /* SRC_RESOLVEDRESOURCE_HPP_ */
Base class for a URL/route-handler in the server.
Definition: HTTPNode.hpp:26
The ResourceParameters provide access to the parameters passed in the URI.
Definition: ResourceParameters.hpp:31
Definition: ConnectionContext.cpp:3
This class represents a resolved resource, meaning the result of mapping a string URL to an HTTPNode...
Definition: ResolvedResource.hpp:12