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

Method equal_body

test/doc/http_examples.cpp:57–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 template<bool isRequest>
57 bool
58 equal_body(string_view sv, string_view body)
59 {
60 test::stream ts{ioc_, sv};
61 message<isRequest, string_body, fields> m;
62 multi_buffer b;
63 ts.close_remote();
64 try
65 {
66 read(ts, b, m);
67 return m.body() == body;
68 }
69 catch(std::exception const& e)
70 {
71 log << "equal_body: " << e.what() << std::endl;
72 return false;
73 }
74 }
75
76 void
77 doExpect100Continue()

Callers

nothing calls this directly

Calls 3

bodyMethod · 0.80
whatMethod · 0.80
readFunction · 0.50

Tested by

no test coverage detected