ESP32 HTTPS Server: /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPResponse.hpp Source File
1 #ifndef SRC_HTTPRESPONSE_HPP_
2 #define SRC_HTTPRESPONSE_HPP_
16 #include "ConnectionContext.hpp"
30 void setStatusCode(uint16_t statusCode);
31 void setStatusText(std::string const &statusText);
33 std::string getStatusText();
34 void setHeader(std::string const &name, std::string const &value);
35 std::string getHeader(std::string const &name);
38 void printStd(std::string const &str);
41 size_t write(const uint8_t *buffer, size_t size);
42 size_t write(uint8_t);
53 void printInternal(const std::string &str, bool skipBuffer = false);
54 size_t writeBytesInternal(const void * data, int length, bool skipBuffer = false);
55 void drainBuffer(bool onOverflow = false);
66 size_t _responseCachePointer;
void error()
Definition: HTTPResponse.cpp:131
Represents the response stream of an HTTP request.
Definition: HTTPResponse.hpp:25
size_t write(const uint8_t *buffer, size_t size)
Definition: HTTPResponse.cpp:88
void printStd(std::string const &str)
Definition: HTTPResponse.cpp:81
Internal class to handle the state of a connection.
Definition: ConnectionContext.hpp:18
Definition: ConnectionContext.cpp:3