Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
http::MultipartForm Class Reference

Represents parsed multipart/form-data content. More...

#include <MultipartForm.hpp>

Static Public Member Functions

static MultipartForm parse (std::string_view content_type_header, std::string_view body)
 Parses a multipart/form-data request body.
 

Public Attributes

std::unordered_map< std::string, std::string > fields
 
std::vector< MultipartFilefiles
 

Detailed Description

Represents parsed multipart/form-data content.

Member Function Documentation

◆ parse()

MultipartForm http::MultipartForm::parse ( std::string_view  content_type_header,
std::string_view  body 
)
static

Parses a multipart/form-data request body.

Parameters
content_type_headerThe Content-Type header containing the boundary.
bodyThe raw request body.
Returns
A parsed MultipartForm object.

Member Data Documentation

◆ fields

std::unordered_map<std::string, std::string> http::MultipartForm::fields

◆ files

std::vector<MultipartFile> http::MultipartForm::files

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