| 298 | } |
| 299 | |
| 300 | void |
| 301 | send_response(http::message_generator&& msg) |
| 302 | { |
| 303 | bool keep_alive = msg.keep_alive(); |
| 304 | |
| 305 | // Write the response |
| 306 | beast::async_write( |
| 307 | derived().stream(), |
| 308 | std::move(msg), |
| 309 | beast::bind_front_handler( |
| 310 | &session::on_write, |
| 311 | derived().shared_from_this(), |
| 312 | keep_alive)); |
| 313 | } |
| 314 | |
| 315 | void |
| 316 | on_write( |
nothing calls this directly
no test coverage detected