HTTP v1.13.1
Loading...
Searching...
No Matches
web::Multipart Class Reference

Defines each part of multipart/form-data. More...

#include <HTTPUtility.h>

Public Member Functions

 Multipart (std::string_view data)
 
 Multipart (std::string_view name, const std::optional< std::string > &fileName, const std::optional< std::string > &contentType, std::string &&data)
 
const std::string & getName () const
 
const std::optional< std::string > & getFileName () const
 
const std::optional< std::string > & getContentType () const
 
const std::string & getData () const
 
 ~Multipart ()=default
 

Detailed Description

Defines each part of multipart/form-data.

Definition at line 167 of file HTTPUtility.h.

Constructor & Destructor Documentation

◆ Multipart() [1/2]

web::Multipart::Multipart ( std::string_view data)

◆ Multipart() [2/2]

web::Multipart::Multipart ( std::string_view name,
const std::optional< std::string > & fileName,
const std::optional< std::string > & contentType,
std::string && data )

◆ ~Multipart()

web::Multipart::~Multipart ( )
default

Member Function Documentation

◆ getContentType()

const optional< string > & web::Multipart::getContentType ( ) const

Definition at line 250 of file HTTPUtility.cpp.

◆ getData()

const string & web::Multipart::getData ( ) const

Definition at line 255 of file HTTPUtility.cpp.

◆ getFileName()

const optional< string > & web::Multipart::getFileName ( ) const

Definition at line 245 of file HTTPUtility.cpp.

◆ getName()

const string & web::Multipart::getName ( ) const

Definition at line 240 of file HTTPUtility.cpp.


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