Go to the documentation of this file.
34 req.
method.push_back(input);
35 return boost::indeterminate;
41 return boost::indeterminate;
49 req.
method.push_back(input);
50 return boost::indeterminate;
56 return boost::indeterminate;
64 req.
uri.push_back(input);
65 return boost::indeterminate;
71 return boost::indeterminate;
81 return boost::indeterminate;
91 return boost::indeterminate;
101 return boost::indeterminate;
113 return boost::indeterminate;
125 return boost::indeterminate;
135 return boost::indeterminate;
141 return boost::indeterminate;
153 return boost::indeterminate;
163 return boost::indeterminate;
169 return boost::indeterminate;
179 return boost::indeterminate;
189 return boost::indeterminate;
191 else if (!req.
headers.empty() && (input ==
' ' || input ==
'\t'))
194 return boost::indeterminate;
203 req.
headers.back().name.push_back(input);
205 return boost::indeterminate;
211 return boost::indeterminate;
213 else if (input ==
' ' || input ==
'\t')
215 return boost::indeterminate;
224 req.
headers.back().value.push_back(input);
225 return boost::indeterminate;
231 return boost::indeterminate;
239 req.
headers.back().name.push_back(input);
240 return boost::indeterminate;
246 return boost::indeterminate;
256 return boost::indeterminate;
264 req.
headers.back().value.push_back(input);
265 return boost::indeterminate;
271 return boost::indeterminate;
278 return (input ==
'\n');
286 return c >= 0 && c <= 127;
291 return (c >= 0 && c <= 31) || (c == 127);
325 return c >=
'0' && c <=
'9';
static bool is_tspecial(int c)
Check if a byte is defined as an HTTP tspecial character.
void reset()
Reset to initial parser state.
enum async_web_server_cpp::HttpRequestParser::state state_
static bool is_digit(int c)
Check if a byte is a digit.
static bool is_ctl(int c)
Check if a byte is an HTTP control character.
static bool is_char(int c)
Check if a byte is an HTTP character.
boost::tribool consume(HttpRequest &req, char input)
Handle the next character of input.
std::vector< HttpHeader > headers
@ space_before_header_value
@ http_version_minor_start
@ http_version_major_start
HttpRequestParser()
Construct ready to parse the request method.
async_web_server_cpp
Author(s): Mitchell Wills
, Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06