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

Method testIssue2201

test/beast/http/basic_parser.cpp:1596–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594 }
1595
1596 void
1597 testIssue2201()
1598 {
1599 const char data[] =
1600 "HTTP/1.1 200 OK\r\n"
1601 "Content-Length: 5\r\n"
1602 "\r\n"
1603 "*****";
1604
1605 test_parser<false> p;
1606 p.eager(true);
1607 p.body_limit(3);
1608 error_code ec;
1609 p.put(net::buffer(data, strlen(data)), ec);
1610 BEAST_EXPECT(ec == error::body_limit);
1611 }
1612
1613 //--------------------------------------------------------------------------
1614

Callers

nothing calls this directly

Calls 3

eagerMethod · 0.80
body_limitMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected