This header defines functions for parsing a URL query string. More...
Go to the source code of this file.
Functions | |
__BEGIN_NS_SSRC_WSPR_FCGI string | parse_header_attribute (const string &header_value, const string &attribute, string::size_type pos=0, string::size_type *end=0) |
void | parse_query_string (const string &query_str, parameter_map ¶meters) |
void | parse_multipart_data (const string &data, const string &boundary, parameter_map ¶meters) |
void | parse_get_parameters (const FCGIRequest &request, parameter_map ¶meters) |
void | parse_post_parameters (const FCGIRequest &request, parameter_map ¶meters) |
Detailed Description
This header defines functions for parsing a URL query string.
Definition in file parse_query.h.
Function Documentation
void parse_get_parameters | ( | const FCGIRequest & | request, |
parameter_map & | parameters | ||
) |
Definition at line 151 of file parse_query.cc.
References FCGIRequest::fcgx_get_param(), parse_query_string(), and URI::query().
Referenced by Relay::http_get().
__BEGIN_NS_SSRC_WSPR_FCGI string parse_header_attribute | ( | const string & | header_value, |
const string & | attribute, | ||
string::size_type | pos = 0 , |
||
string::size_type * | end = 0 |
||
) |
Definition at line 27 of file parse_query.cc.
Referenced by parse_multipart_data(), and parse_post_parameters().
void parse_multipart_data | ( | const string & | data, |
const string & | boundary, | ||
parameter_map & | parameters | ||
) |
Definition at line 109 of file parse_query.cc.
References parse_header_attribute(), and detail::step().
Referenced by parse_post_parameters().
void parse_post_parameters | ( | const FCGIRequest & | request, |
parameter_map & | parameters | ||
) |
Definition at line 166 of file parse_query.cc.
References FCGIRequest::content_length(), FCGIRequest::content_type(), FCGIRequest::fcgx_get_str(), parse_header_attribute(), parse_multipart_data(), and parse_query_string().
Referenced by Relay::http_post().
void parse_query_string | ( | const string & | query_str, |
parameter_map & | parameters | ||
) |
Definition at line 69 of file parse_query.cc.
References unescape_url(), and value().
Referenced by parse_get_parameters(), and parse_post_parameters().