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

Method testIssue1187

test/beast/http/parser.cpp:456–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454 }
455
456 void
457 testIssue1187()
458 {
459 // make sure parser finishes on redirect
460 error_code ec;
461 parser_type<false> p;
462 p.eager(true);
463 p.put(buf(
464 "HTTP/1.1 301 Moved Permanently\r\n"
465 "Location: https://www.ebay.com\r\n"
466 "\r\n\r\n"), ec);
467 BEAST_EXPECTS(! ec, ec.message());
468 BEAST_EXPECT(p.is_header_done());
469 BEAST_EXPECT(! p.is_done());
470 BEAST_EXPECT(p.need_eof());
471 }
472
473 void
474 testIssue1880()

Callers

nothing calls this directly

Calls 6

eagerMethod · 0.80
messageMethod · 0.80
need_eofMethod · 0.80
putMethod · 0.45
is_header_doneMethod · 0.45
is_doneMethod · 0.45

Tested by

no test coverage detected