#include <http_parser.hpp>
◆ Http_parser()
Http_parser::Http_parser |
( |
map< string, string > & |
env_ptr | ) |
|
|
explicit |
A class for parsing the stdin passed to us by the CGI web server.
Note that the order of operations is dependent.
- Parameters
-
env_ptr | The web server CGI shell environment passed into main() and parsed into Http_io::env |
◆ ~Http_parser()
Http_parser::~Http_parser |
( |
| ) |
|
◆ parse_json()
void Http_parser::parse_json |
( |
| ) |
|
◆ parse_multipart_form()
void Http_parser::parse_multipart_form |
( |
| ) |
|
◆ parse_query_string()
void Http_parser::parse_query_string |
( |
| ) |
|
◆ parse_raw_content_type()
void Http_parser::parse_raw_content_type |
( |
| ) |
|
◆ print_all()
void Http_parser::print_all |
( |
ostream & |
o_stream, |
|
|
http_io & |
io, |
|
|
bool |
hex_dump = false |
|
) |
| |
◆ print_file()
void Http_parser::print_file |
( |
ostream & |
o_stream, |
|
|
bool |
hex_dump = false |
|
) |
| |
◆ print_get()
void Http_parser::print_get |
( |
ostream & |
o_stream, |
|
|
bool |
hex_dump = false |
|
) |
| |
◆ print_post()
void Http_parser::print_post |
( |
ostream & |
o_stream, |
|
|
bool |
hex_dump = false |
|
) |
| |
◆ boundary
string Http_parser::boundary |
◆ charset
string Http_parser::charset |
◆ content_type
string Http_parser::content_type |
◆ content_type_regex
◆ cr_nl
const string Http_parser::cr_nl {"\r\n"} |
◆ cr_nl_2
const string Http_parser::cr_nl_2 {"\r\n\r\n"} |
◆ cr_nl_2s
const int Http_parser::cr_nl_2s = 4 |
|
static |
◆ cr_nl_s
const int Http_parser::cr_nl_s = 2 |
|
static |
◆ curl
◆ data_regex
const string Http_parser::data_regex = R"END(Content-Disposition: form-data; name="(.*)")END" |
|
private |
◆ env
map<string, string> Http_parser::env |
◆ file
map<string, vector<map<string, string> > > Http_parser::file |
◆ file_regex_line1
const string Http_parser::file_regex_line1 = R"END(Content-Disposition: form-data; name="(.*?)"; filename="(.*?)")END" |
|
private |
◆ file_regex_line2
const string Http_parser::file_regex_line2 = R"END(Content-Type: (.*))END" |
|
private |
◆ get
map<string, vector<string> > Http_parser::get |
◆ http_content_type
const char Http_parser::http_content_type[24] = R"END(^(.*?);\s(.*)$)END" |
|
private |
◆ multipart_form_data
regex Http_parser::multipart_form_data {data_regex, regex_constants::optimize} |
|
private |
◆ multipart_form_file_l1
regex Http_parser::multipart_form_file_l1 {file_regex_line1, regex_constants::optimize} |
|
private |
◆ multipart_form_file_l2
regex Http_parser::multipart_form_file_l2 {file_regex_line2, regex_constants::optimize} |
|
private |
◆ post
map<string, vector<string> > Http_parser::post |
◆ su
The documentation for this class was generated from the following files: