11 #ifndef HTTP_REQUEST_PARSER_HPP 12 #define HTTP_REQUEST_PARSER_HPP 38 template <
typename InputIterator>
40 InputIterator
begin, InputIterator
end)
45 if (result ==
good || result ==
bad)
46 return std::make_tuple(result, begin);
48 return std::make_tuple(indeterminate, begin);
56 static bool is_char(
int c);
59 static bool is_ctl(
int c);
62 static bool is_tspecial(
int c);
65 static bool is_digit(
int c);
78 http_version_major_start,
80 http_version_minor_start,
86 space_before_header_value,
96 #endif // HTTP_REQUEST_PARSER_HPP
SocketService Iterator begin
request_parser()
Construct ready to parse the request method.
void reset()
Reset to initial parser state.
std::tuple< result_type, InputIterator > parse(request &req, InputIterator begin, InputIterator end)
result_type
Result of parse.
SocketService Iterator Iterator end
A request received from a client.