ESP32 HTTPS Server

Public Member Functions | List of all members
httpsserver::HTTPRequest Class Reference

Represents the request stream for an HTTP request. More...

`#include <HTTPRequest.hpp>`

## Public Member Functions
| HTTPRequest (ConnectionContext *con, HTTPHeaders *headers, HTTPNode *resolvedNode, std::string method, ResourceParameters *params, std::string requestString)
std::string | getHeader (std::string const &name)
void | setHeader (std::string const &name, std::string const &value)
HTTPNode * | getResolvedNode ()
std::string | getRequestString ()
std::string | getMethod ()
std::string | getTag ()
size_t | readChars (char *buffer, size_t length)
size_t | readBytes (byte *buffer, size_t length)
size_t | getContentLength ()
bool | requestComplete ()
void | discardRequestBody ()
ResourceParameters * | getParams ()
std::string | getBasicAuthUser ()
std::string | getBasicAuthPassword ()
bool | isSecure ()
void | setWebsocketHandler (WebsocketHandler *wsHandler)

## Detailed Description

Represents the request stream for an HTTP request.

## Member Function Documentation

## ◆ discardRequestBody()

void httpsserver::HTTPRequest::discardRequestBody | ( |  | ) |

This function will drop whatever is remaining of the request body

The documentation for this class was generated from the following files:

- /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPRequest.hpp
- /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPRequest.cpp