MCPcopy Create free account
hub / github.com/alibaba/async_simple / parse

Method parse

demo_example/http/http_request.hpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 /// the input has been consumed.
46 template <typename InputIterator>
47 std::tuple<result_type, InputIterator> parse(request& req,
48 InputIterator begin,
49 InputIterator end) {
50 while (begin != end) {
51 result_type result = consume(req, *begin++);
52 if (result == good || result == bad)
53 return std::make_tuple(result, begin);
54 }
55 return std::make_tuple(indeterminate, begin);
56 }
57
58private:
59 /// Handle the next character of input.

Callers 2

startMethod · 0.80
startMethod · 0.80

Calls 1

consumeFunction · 0.85

Tested by

no test coverage detected