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

Method do_read

example/http/server/flex/http_server_flex.cpp:264–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 void
265 do_read()
266 {
267 // Set the timeout.
268 beast::get_lowest_layer(
269 derived().stream()).expires_after(std::chrono::seconds(30));
270
271 // Read a request
272 http::async_read(
273 derived().stream(),
274 buffer_,
275 req_,
276 beast::bind_front_handler(
277 &session::on_read,
278 derived().shared_from_this()));
279 }
280
281 void
282 on_read(

Callers

nothing calls this directly

Calls 2

bind_front_handlerFunction · 0.85
async_readFunction · 0.50

Tested by

no test coverage detected