Public Member Functions | Public Attributes | List of all members
cpr::Part Struct Reference

#include <multipart.h>

Public Member Functions

 Part (const std::string &name, const std::string &value, const std::string &content_type={})
 
 Part (const std::string &name, const std::int32_t &value, const std::string &content_type={})
 
 Part (const std::string &name, const File &file, const std::string &content_type={})
 
 Part (const std::string &name, const Buffer &buffer, const std::string &content_type={})
 

Public Attributes

std::string content_type
 
Buffer::data_t data
 
unsigned long datalen
 
bool is_buffer
 
bool is_file
 
std::string name
 
std::string value
 

Detailed Description

Definition at line 43 of file multipart.h.

Constructor & Destructor Documentation

cpr::Part::Part ( const std::string &  name,
const std::string &  value,
const std::string &  content_type = {} 
)
inline

Definition at line 44 of file multipart.h.

cpr::Part::Part ( const std::string &  name,
const std::int32_t &  value,
const std::string &  content_type = {} 
)
inline

Definition at line 47 of file multipart.h.

cpr::Part::Part ( const std::string &  name,
const File file,
const std::string &  content_type = {} 
)
inline

Definition at line 50 of file multipart.h.

cpr::Part::Part ( const std::string &  name,
const Buffer buffer,
const std::string &  content_type = {} 
)
inline

Definition at line 53 of file multipart.h.

Member Data Documentation

std::string cpr::Part::content_type

Definition at line 59 of file multipart.h.

Buffer::data_t cpr::Part::data

Definition at line 60 of file multipart.h.

unsigned long cpr::Part::datalen

Definition at line 61 of file multipart.h.

bool cpr::Part::is_buffer

Definition at line 63 of file multipart.h.

bool cpr::Part::is_file

Definition at line 62 of file multipart.h.

std::string cpr::Part::name

Definition at line 57 of file multipart.h.

std::string cpr::Part::value

Definition at line 58 of file multipart.h.


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


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18