Called to start/continue the write-loop. Should not be called when write_loop is already active.
| 541 | // Called to start/continue the write-loop. Should not be called when |
| 542 | // write_loop is already active. |
| 543 | void |
| 544 | do_write() |
| 545 | { |
| 546 | if(! response_queue_.empty()) |
| 547 | { |
| 548 | bool keep_alive = response_queue_.front().keep_alive(); |
| 549 | |
| 550 | beast::async_write( |
| 551 | derived().stream(), |
| 552 | std::move(response_queue_.front()), |
| 553 | beast::bind_front_handler( |
| 554 | &http_session::on_write, |
| 555 | derived().shared_from_this(), |
| 556 | keep_alive)); |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | void |
| 561 | on_write( |
nothing calls this directly
no test coverage detected