Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
MultipartParser.h File Reference

Parser for handling multipart/form-data file uploads. Part of the PicoFramework HTTP server. This module provides the MultipartParser class, which is responsible for processing multipart/form-data uploads over HTTP. It handles detecting boundaries, parsing headers, extracting filenames, and writing file data to storage (e.g., an SD card). It also sends appropriate HTTP responses based on the success or failure of the upload process. More...

#include <string>
#include <unordered_map>
#include "http/HttpRequest.h"
#include "network/Tcp.h"
+ Include dependency graph for MultipartParser.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MultipartParser
 Parses and processes multipart/form-data uploads over HTTP. More...
 

Enumerations

enum  State { SEARCHING_FOR_BOUNDARY , FOUND_BOUNDARY , FOUND_DATA_START , COMPLETE }
 

Detailed Description

Author
Ian Archbell
Version
0.1
Date
2025-03-26
License:\n MIT License

Definition in file MultipartParser.h.

Enumeration Type Documentation

◆ State

enum State
Enumerator
SEARCHING_FOR_BOUNDARY 
FOUND_BOUNDARY 
FOUND_DATA_START 
COMPLETE 

Definition at line 26 of file MultipartParser.h.

27{
32};
@ COMPLETE
@ FOUND_BOUNDARY
@ FOUND_DATA_START
@ SEARCHING_FOR_BOUNDARY