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

Method on_write

example/http/client/async-ssl/http_client_async_ssl.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void
148 on_write(
149 beast::error_code ec,
150 std::size_t bytes_transferred)
151 {
152 boost::ignore_unused(bytes_transferred);
153
154 if(ec)
155 return fail(ec, "write");
156
157 // Receive the HTTP response
158 http::async_read(stream_, buffer_, res_,
159 beast::bind_front_handler(
160 &session::on_read,
161 shared_from_this()));
162 }
163
164 void
165 on_read(

Callers

nothing calls this directly

Calls 3

bind_front_handlerFunction · 0.85
failFunction · 0.70
async_readFunction · 0.50

Tested by

no test coverage detected