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
12 class ResolvedResource {
13 public:
14 ResolvedResource();
15 ~ResolvedResource();
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_ */
httpsserver::HTTPNode
Base class for a URL/route-handler in the server.
Definition: HTTPNode.hpp:26
httpsserver::ResourceParameters
Class used to handle access to the URL parameters.
Definition: ResourceParameters.hpp:22
httpsserver
Definition: ConnectionContext.cpp:3
httpsserver::ResolvedResource
This class represents a resolved resource, meaning the result of mapping a string URL to an HTTPNode...
Definition: ResolvedResource.hpp:12