HTTP Reader (API Change):

fix #114, fix #117, fix #136

* Added init() to Reader requirements
* Reader must be nothrow constructible
* Reader is now constructed right before reading the body
  - The message passed on construction is filled in
This commit is contained in:
Vinnie Falco
2016-10-17 11:11:57 -04:00
parent 183055a74c
commit 8a261ca923
8 changed files with 171 additions and 55 deletions
+3 -3
View File
@@ -190,9 +190,9 @@ static std::uint64_t constexpr no_content_length =
@li `void on_complete(error_code&)`
Called when the entire message has been parsed successfully.
At this point, @ref basic_parser_v1::complete returns `true`, and
the parser is ready to parse another message if keep_alive
would return `true`.
At this point, @ref complete returns `true`, and the parser
is ready to parse another message if @ref keep_alive would
return `true`.
The return value of `on_headers` is special, it controls whether
or not the parser should expect a body. See @ref body_what for