10 #ifndef _UGCS_VSM_HTTP_PARSER_H_
11 #define _UGCS_VSM_HTTP_PARSER_H_
32 bool operator() (
const std::string& lhs,
const std::string& rhs)
const {
33 return strcasecmp(lhs.c_str(), rhs.c_str()) < 0;
41 Parse(std::istream &in);
59 std::string parser_error;
62 std::map<std::string, std::string, string_compare_ignore_case> header_table;
63 std::string http_method;
Definition: http_parser.h:31
std::string Get_method() const
Get HTTP method name.
bool Parse(std::istream &in)
Parse http header from text stream.
bool Header_exists(const std::string &name) const
Check if the header field with the specified name exists.
VSM exceptions definition.
std::string Get_header_value(const std::string &name) const
Get string value of header.
This class implements limited HTTP parser according to RFC7230 Supports:
Definition: http_parser.h:29