|
MantisBase v0.3.4
|
More...Middleware shorthand for the content reader
#include <http.h>
Public Member Functions | |
| MantisContentReader (const httplib::ContentReader &reader, const MantisRequest &req) | |
| const httplib::ContentReader & | reader () const |
| bool | isMultipartFormData () const |
| const std::vector< httplib::FormData > & | formData () const |
| const json & | filesMetadata () const |
| const json & | jsonBody () const |
| void | parseFormDataToEntity (const Entity &entity) |
| void | writeFiles (const std::string &entity_name) |
| void | undoWrittenFiles (const std::string &entity_name) |
Static Public Member Functions | |
| static std::string | hashMultipartMetadata (const httplib::FormData &data) |
Middleware shorthand for the content reader
|
explicit |
| const json & mb::MantisContentReader::filesMetadata | ( | ) | const |
| const std::vector< httplib::FormData > & mb::MantisContentReader::formData | ( | ) | const |
|
static |
| bool mb::MantisContentReader::isMultipartFormData | ( | ) | const |
| const json & mb::MantisContentReader::jsonBody | ( | ) | const |
| void mb::MantisContentReader::parseFormDataToEntity | ( | const Entity & | entity | ) |
| const httplib::ContentReader & mb::MantisContentReader::reader | ( | ) | const |
| void mb::MantisContentReader::undoWrittenFiles | ( | const std::string & | entity_name | ) |
| void mb::MantisContentReader::writeFiles | ( | const std::string & | entity_name | ) |