ESP32 HTTPS Server
|
Public Member Functions | |
HTTPURLEncodedBodyParser (HTTPRequest *req) | |
virtual bool | nextField () |
virtual std::string | getFieldName () |
virtual std::string | getFieldFilename () |
virtual std::string | getFieldMimeType () |
virtual bool | endOfField () |
virtual size_t | read (byte *buffer, size_t bufferSize) |
![]() | |
HTTPBodyParser (HTTPRequest *req) | |
Protected Attributes | |
char * | bodyBuffer |
char * | bodyPtr |
size_t | bodyLength |
std::string | fieldName |
std::string | fieldBuffer |
const char * | fieldPtr |
size_t | fieldRemainingLength |
![]() | |
HTTPRequest * | _request |
Additional Inherited Members | |
![]() | |
const size_t | unknownLength = 0x7ffffffe |
|
virtual |
Returns true when all field data has been read
Implements httpsserver::HTTPBodyParser.
|
virtual |
Returns the filename of the current field or an empty string
Implements httpsserver::HTTPBodyParser.
|
virtual |
Returns the mime type of the current field.
Note: This value is set by the client. It can be altered maliciously. Do NOT rely on it for anything that affects the security of your device or other clients connected to it!
Not every BodyParser might provide this value, usually it's set to something like text/plain then
Implements httpsserver::HTTPBodyParser.
|
virtual |
Returns the name of the current field
Implements httpsserver::HTTPBodyParser.
|
virtual |
Proceeds to the next field of the body
If a field has not been read completely, the remaining content is discarded.
Returns true iff proceeding to the next field succeeded (ie there was a next field)
Implements httpsserver::HTTPBodyParser.
|
virtual |
Reads a maximum of bufferSize bytes into buffer and returns the actual amount of bytes that have been read
Implements httpsserver::HTTPBodyParser.