ESP32 HTTPS Server

HTTPHeaders.hpp
1 #ifndef SRC_HTTPHEADERS_HPP_
2 #define SRC_HTTPHEADERS_HPP_
3
4 #include <string>
5 // Arduino declares it's own min max, incompatible with the stl...
6 #undef min
7 #undef max
8 #include <vector>
9
10 #include "HTTPSServerConstants.hpp"
11 #include "HTTPHeader.hpp"
12
13 namespace httpsserver {
14
18 class HTTPHeaders {
19 public:
20 HTTPHeaders();
21 virtual ~HTTPHeaders();
22
23 HTTPHeader * get(std::string const &name);
24 std::string getValue(std::string const &name);
25 void set(HTTPHeader * header);
26
27 std::vector<HTTPHeader *> * getAll();
28
29 void clearAll();
30
31 private:
32 std::vector<HTTPHeader*> * _headers;
33 };
34
35 } /* namespace httpsserver */
36
37 #endif /* SRC_HTTPHEADERS_HPP_ */
httpsserver::HTTPHeaders
Groups and manages a set of HTTPHeader instances.
Definition: HTTPHeaders.hpp:18
httpsserver::HTTPHeader
Represents a single name/value pair of an HTTP header.
Definition: HTTPHeader.hpp:12
httpsserver::HTTPHeaders::clearAll
void clearAll()
Definition: HTTPHeaders.cpp:52
httpsserver
Definition: ConnectionContext.cpp:3