BinaryNinja::Http::MultipartField Struct Reference

Structure for multipart form fields. More...

Detailed Description

Structure for multipart form fields.

Public Member Functions

 MultipartField (std::string name, const std::string &content)
 Construct a Multipart Field structure with a UTF-8 string encoded body. More...
 
 MultipartField (std::string name, const std::string &content, std::string filename)
 Construct a Multipart Field structure for a file with a UTF-8 string encoded body. More...
 
 MultipartField (std::string name, std::vector< uint8_t > content)
 Construct a Multipart Field structure with a binary blob body. More...
 
 MultipartField (std::string name, std::vector< uint8_t > content, std::string filename)
 Construct a Multipart Field structure for a file with a binary blob body. More...
 

Public Attributes

std::string name
 
std::vector< uint8_t > content
 
std::optional< std::string > filename
 

Constructor & Destructor Documentation

◆ MultipartField() [1/4]

BinaryNinja::Http::MultipartField::MultipartField ( std::string  name,
const std::string &  content 
)
inline

Construct a Multipart Field structure with a UTF-8 string encoded body.

Parameters
nameName of the field to be sent in a POST request
contentContents of the field

◆ MultipartField() [2/4]

BinaryNinja::Http::MultipartField::MultipartField ( std::string  name,
const std::string &  content,
std::string  filename 
)
inline

Construct a Multipart Field structure for a file with a UTF-8 string encoded body.

Parameters
nameName of the field to be sent in a POST request
contentContents of the field
filenameFilename associated with the contents

◆ MultipartField() [3/4]

BinaryNinja::Http::MultipartField::MultipartField ( std::string  name,
std::vector< uint8_t >  content 
)
inline

Construct a Multipart Field structure with a binary blob body.

Parameters
nameName of the field to be sent in a POST request
contentContents of the field

◆ MultipartField() [4/4]

BinaryNinja::Http::MultipartField::MultipartField ( std::string  name,
std::vector< uint8_t >  content,
std::string  filename 
)
inline

Construct a Multipart Field structure for a file with a binary blob body.

Parameters
nameName of the field to be sent in a POST request
contentContents of the field
filenameFilename associated with the contents

Member Data Documentation

◆ name

std::string BinaryNinja::Http::MultipartField::name

◆ content

std::vector<uint8_t> BinaryNinja::Http::MultipartField::content

◆ filename

std::optional< std::string > BinaryNinja::Http::MultipartField::filename