ESP32 HTTPS Server: /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPRequest.hpp Source File
1 #ifndef SRC_HTTPREQUEST_HPP_
2 #define SRC_HTTPREQUEST_HPP_
10 #include "ConnectionContext.hpp"
14 #include "ResourceParameters.hpp"
27 std::string getHeader(std::string const &name);
28 void setHeader(std::string const &name, std::string const &value);
30 std::string getRequestString();
35 size_t readChars(char * buffer, size_t length);
36 size_t readBytes(byte * buffer, size_t length);
42 std::string getBasicAuthUser();
43 std::string getBasicAuthPassword();
48 std::string decodeBasicAuthToken();
60 std::string _requestString;
Represents the request stream for an HTTP request.
Definition: HTTPRequest.hpp:22
Base class for a URL/route-handler in the server.
Definition: HTTPNode.hpp:26
void discardRequestBody()
Definition: HTTPRequest.cpp:116
The ResourceParameters provide access to the parameters passed in the URI.
Definition: ResourceParameters.hpp:31
Definition: WebsocketHandler.hpp:34
Internal class to handle the state of a connection.
Definition: ConnectionContext.hpp:18
Definition: ConnectionContext.cpp:3