Class HttpRequestParser

Class Documentation

class async_web_server_cpp::HttpRequestParser

Public Functions

HttpRequestParser()

Construct ready to parse the request method.

void reset()

Reset to initial parser state.

template<typename InputIterator>
inline boost::tuple<boost::tribool, InputIterator> parse(HttpRequest &req, InputIterator begin, InputIterator end)

Parse some data. The tribool return value is true when a complete request has been parsed, false if the data is invalid, indeterminate when more data is required. The InputIterator return value indicates how much of the input has been consumed.