Skip to content

Commit 66754fd

Browse files
author
Dean Michael Berris
committed
Adding comment and additional debugging information in the test for incremental HTTP response parsing.
1 parent 0be3ef5 commit 66754fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/network/test/http_incremental_parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ BOOST_AUTO_TEST_CASE(incremental_parser_parse_status_message) {
179179
std::cout << "PARSED: " << parsed << " state=" << p.state() << std::endl;
180180
}
181181

182+
/** This test specifices how one-line-per-header parsing happens incrementally.
183+
*/
182184
BOOST_AUTO_TEST_CASE(incremental_parser_parse_header_lines) {
183185
typedef response_parser<tags::default_string> response_parser_type;
184186
typedef response_parser_type::range_type range_type;
@@ -210,3 +212,4 @@ BOOST_AUTO_TEST_CASE(incremental_parser_parse_header_lines) {
210212
BOOST_CHECK_EQUAL(parsed_ok, true);
211213
BOOST_CHECK(parsed1 != parsed2);
212214
}
215+

0 commit comments

Comments
 (0)