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

Method testUnlimitedBody

test/beast/http/basic_parser.cpp:1579–1594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577 }
1578
1579 void
1580 testUnlimitedBody()
1581 {
1582 const char data[] =
1583 "POST / HTTP/1.1\r\n"
1584 "Content-Length: 5\r\n"
1585 "\r\n"
1586 "*****";
1587
1588 test::fail_count fc(1000);
1589 test_parser<true> p(fc);
1590 p.body_limit(none);
1591 error_code ec;
1592 p.put(net::buffer(data, strlen(data)), ec);
1593 BEAST_EXPECTS(!ec, ec.message());
1594 }
1595
1596 void
1597 testIssue2201()

Callers

nothing calls this directly

Calls 3

body_limitMethod · 0.80
messageMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected