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

Method doHEAD

test/doc/http_examples.cpp:191–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 void
192 doHEAD()
193 {
194 test::stream ts{ioc_}, tr{ioc_};
195 ts.connect(tr);
196 yield_to(
197 [&](yield_context)
198 {
199 error_code ec;
200 flat_buffer buffer;
201 do_server_head(tr, buffer, ec);
202 BEAST_EXPECTS(! ec, ec.message());
203 },
204 [&](yield_context)
205 {
206 error_code ec;
207 flat_buffer buffer;
208 auto res = do_head_request(ts, buffer, "/", ec);
209 BEAST_EXPECTS(! ec, ec.message());
210 });
211 }
212
213 struct handler
214 {

Callers

nothing calls this directly

Calls 3

do_server_headFunction · 0.85
do_head_requestFunction · 0.85
messageMethod · 0.80

Tested by

no test coverage detected