| 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( |
nothing calls this directly
no test coverage detected