Called to start/continue the write-loop. Should not be called when write_loop is already active.
| 430 | // Called to start/continue the write-loop. Should not be called when |
| 431 | // write_loop is already active. |
| 432 | void |
| 433 | do_write() |
| 434 | { |
| 435 | if(! response_queue_.empty()) |
| 436 | { |
| 437 | bool keep_alive = response_queue_.front().keep_alive(); |
| 438 | |
| 439 | beast::async_write( |
| 440 | stream_, |
| 441 | std::move(response_queue_.front()), |
| 442 | beast::bind_front_handler( |
| 443 | &http_session::on_write, |
| 444 | shared_from_this(), |
| 445 | keep_alive)); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | void |
| 450 | on_write( |
nothing calls this directly
no test coverage detected