1 #ifndef __AIRINV_SVR_REQUESTPARSER_HPP
2 #define __AIRINV_SVR_REQUESTPARSER_HPP
9 #include <boost/logic/tribool.hpp>
10 #include <boost/tuple/tuple.hpp>
29 template <
typename InputIterator>
34 while (begin != end) {
35 boost::tribool result = consume(req, *begin++);
36 if (result || !result)
37 return boost::make_tuple(result, begin);
40 boost::tribool result = boost::indeterminate;
41 return boost::make_tuple(result, begin);
46 boost::tribool consume (
Request& req,
char input);
49 static bool is_char(
int c);
52 static bool is_ctl(
int c);
55 static bool is_tspecial(
int c);
58 static bool is_digit(
int c);
71 http_version_major_start,
73 http_version_minor_start,
79 space_before_header_value,
87 #endif // __AIRINV_SVR_REQUESTPARSER_HPP