MCPcopy Create free account
hub / github.com/boostorg/beast / testIssue692

Method testIssue692

test/beast/http/basic_parser.cpp:1190–1205  ·  view source on GitHub ↗

https://github.com/boostorg/beast/issues/692

Source from the content-addressed store, hash-verified

1188
1189 // https://github.com/boostorg/beast/issues/692
1190 void
1191 testIssue692()
1192 {
1193 error_code ec;
1194 test_parser<false> p;
1195 p.eager(true);
1196 string_view s =
1197 "HTTP/1.1 101 Switching Protocols\r\n"
1198 "Content-Length: 2147483648\r\n"
1199 "\r\n";
1200 p.put(net::buffer(
1201 s.data(), s.size()), ec);
1202 if(! BEAST_EXPECTS(! ec, ec.message()))
1203 return;
1204 BEAST_EXPECT(p.is_done());
1205 }
1206
1207 //--------------------------------------------------------------------------
1208

Callers

nothing calls this directly

Calls 6

eagerMethod · 0.80
messageMethod · 0.80
putMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
is_doneMethod · 0.45

Tested by

no test coverage detected