DeterministicESPAsyncWebServer 1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
MultipartPart Struct Reference

One parsed part from a multipart body. More...

#include <multipart.h>

Public Attributes

const char * name
 Form field name from Content-Disposition, or nullptr.
 
const char * filename
 Upload filename from Content-Disposition, or nullptr.
 
const char * type
 Content-Type of this part, or nullptr.
 
const char * data
 Part body (null-terminated in-place).
 
size_t data_len
 Part body length in bytes (not counting the null).
 

Detailed Description

One parsed part from a multipart body.

All char* fields point into the (modified) HttpReq::body[] buffer. They are null-terminated and valid until http_reset() is called.

Definition at line 40 of file multipart.h.

Member Data Documentation

◆ name

const char* MultipartPart::name

Form field name from Content-Disposition, or nullptr.

Definition at line 42 of file multipart.h.

Referenced by multipart_get_field(), and multipart_parse().

◆ filename

const char* MultipartPart::filename

Upload filename from Content-Disposition, or nullptr.

Definition at line 43 of file multipart.h.

Referenced by multipart_parse().

◆ type

const char* MultipartPart::type

Content-Type of this part, or nullptr.

Definition at line 44 of file multipart.h.

Referenced by multipart_parse().

◆ data

const char* MultipartPart::data

Part body (null-terminated in-place).

Definition at line 45 of file multipart.h.

Referenced by multipart_get_field(), and multipart_parse().

◆ data_len

size_t MultipartPart::data_len

Part body length in bytes (not counting the null).

Definition at line 46 of file multipart.h.

Referenced by multipart_parse().


The documentation for this struct was generated from the following file: