| 29 | size_t handle; |
| 30 | |
| 31 | void write(ResponseBody &&response) { |
| 32 | // std::cout << "Client write " << handle << std::endl; |
| 33 | try { |
| 34 | cb(handle, response.r.status, response.body); |
| 35 | } catch (...) { |
| 36 | // We catch JS errors as ... and ignore them |
| 37 | std::cout << "Client::write cb leads to throw/catch" << std::endl; |
| 38 | } |
| 39 | global_server->on_client_disconnected(this); |
| 40 | } |
| 41 | }; |
| 42 | |
| 43 | } // namespace http |
nothing calls this directly
no test coverage detected