The parsed multipart request/response. More...
#include <multipart_view.h>
Public Member Functions | |
const std::string & | get_header_value (const std::string &key) const |
part_view | get_part_by_name (const std::string_view name) |
std::string | dump () const |
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_view (const ci_map &headers_, const std::string &boundary_, const std::vector< part_view > §ions) | |
Default constructor using default values. | |
message_view (const request &req) | |
Create a multipart message from a request data. | |
Public Attributes | |
std::reference_wrapper< const ci_map > | headers |
The request/response headers. | |
std::string | boundary |
The text boundary that separates different parts | |
std::vector< part_view > | parts |
The individual parts of the message. | |
mp_view_map | part_map |
The individual parts of the message, organized in a map with the name header parameter being the key. | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const message_view message) |
The parsed multipart request/response.