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

Method doDeferredBody

test/doc/http_examples.cpp:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 };
229
230 void
231 doDeferredBody()
232 {
233 test::stream ts(ioc_,
234 "POST / HTTP/1.1\r\n"
235 "User-Agent: test\r\n"
236 "Content-Type: multipart/form-data\r\n"
237 "Content-Length: 13\r\n"
238 "\r\n"
239 "Hello, world!");
240
241 handler h;
242 flat_buffer buffer;
243 do_form_request(ts, buffer, h);
244 BEAST_EXPECT(h.body == "Hello, world!");
245 }
246
247 //--------------------------------------------------------------------------
248

Callers

nothing calls this directly

Calls 1

do_form_requestFunction · 0.85

Tested by

no test coverage detected