The parsed multipart request/response. More...
#include <multipart.h>
Public Member Functions | |
const std::string & | get_header_value (const std::string &key) const |
part | get_part_by_name (const std::string &name) |
std::string | dump () const override |
Represent all parts as a string (does not include message headers) | |
std::string | dump (int part_) const |
Represent an individual part as a string. | |
message (const ci_map &headers_, const std::string &boundary_, const std::vector< part > §ions) | |
Default constructor using default values. | |
message (const request &req) | |
Create a multipart message from a request data. | |
Public Member Functions inherited from crow::returnable | |
returnable (std::string ctype) | |
Public Attributes | |
ci_map | headers |
The request/response headers. | |
std::string | boundary |
The text boundary that separates different parts | |
std::vector< part > | parts |
The individual parts of the message. | |
mp_map | part_map |
The individual parts of the message, organized in a map with the name header parameter being the key. | |
Public Attributes inherited from crow::returnable | |
std::string | content_type |
The parsed multipart request/response.