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

Method put

test/beast/http/parser.cpp:46–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 template<class ConstBufferSequence,
45 bool isRequest>
46 static
47 void
48 put(ConstBufferSequence const& buffers,
49 basic_parser<isRequest>& p,
50 error_code& ec)
51 {
52 buffers_suffix<ConstBufferSequence> cb{buffers};
53 for(;;)
54 {
55 auto const used = p.put(cb, ec);
56 cb.consume(used);
57 if(ec)
58 return;
59 if(p.need_eof() &&
60 buffer_bytes(cb) == 0)
61 {
62 p.put_eof(ec);
63 if(ec)
64 return;
65 }
66 if(p.is_done())
67 break;
68 }
69 }
70
71 template<bool isRequest, class F>
72 void

Callers 15

parsegrindMethod · 0.45
failgrindMethod · 0.45
testLimitsMethod · 0.45
feedMethod · 0.45
testIssue452Method · 0.45
testIssue692Method · 0.45
testFuzzMethod · 0.45
testIssue1734Method · 0.45
testChunkedOverflowMethod · 0.45
testChunkedBodySizeMethod · 0.45
testUnlimitedBodyMethod · 0.45
testIssue2201Method · 0.45

Calls 3

need_eofMethod · 0.80
consumeMethod · 0.45
is_doneMethod · 0.45

Tested by

no test coverage detected