Adds support to REQBODY_ERROR_MSG and REQBODY_ERROR

Support to REQBODY_PROCESSOR_ERROR and REQBODY_PROCESSOR_ERROR_MSG
were also added.
This commit is contained in:
Felipe Zimmerle
2016-06-16 23:14:15 -03:00
parent 7bd6e9a2bd
commit ebe8424758
6 changed files with 120 additions and 29 deletions

View File

@@ -100,18 +100,18 @@ class Multipart {
Multipart(std::string header, Transaction *transaction);
~Multipart();
bool init();
bool init(std::string *err);
int boundary_characters_valid(const char *boundary);
int count_boundary_params(const std::string& str_header_value);
int is_token_char(unsigned char c);
int multipart_complete();
int multipart_complete(std::string *err);
int parse_content_disposition(const char *c_d_value);
bool process(const std::string& data);
bool process(const std::string& data, std::string *err);
int process_boundary(int last_part);
int process_part_header();
int process_part_data();
int process_part_header(std::string *error);
int process_part_data(std::string *error);
int tmp_file_name(std::string *filename);