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

Method send_response

example/http/server/async/http_server_async.cpp:280–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 void
281 send_response(http::message_generator&& msg)
282 {
283 bool keep_alive = msg.keep_alive();
284
285 // Write the response
286 beast::async_write(
287 stream_,
288 std::move(msg),
289 beast::bind_front_handler(
290 &session::on_write, shared_from_this(), keep_alive));
291 }
292
293 void
294 on_write(

Callers

nothing calls this directly

Calls 4

moveClass · 0.85
bind_front_handlerFunction · 0.85
async_writeFunction · 0.50
keep_aliveMethod · 0.45

Tested by

no test coverage detected