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

Function do_get

example/http/client/methods/http_client_methods.cpp:34–43  ·  view source on GitHub ↗

perform a get request

Source from the content-addressed store, hash-verified

32
33// perform a get request
34void do_get(beast::tcp_stream & stream,
35 http::request<http::string_body> & req,
36 beast::flat_buffer buffer,
37 http::response<http::dynamic_body> & res)
38{
39 req.target("/get");
40 req.method(beast::http::verb::get);
41 http::write(stream, req);
42 http::read(stream, buffer, res);
43}
44
45// perform a head request
46void do_head(beast::tcp_stream & stream,

Callers 1

mainFunction · 0.85

Calls 4

targetMethod · 0.80
methodMethod · 0.80
writeFunction · 0.50
readFunction · 0.50

Tested by

no test coverage detected