Called after the end of a request. Override this method to perform cleanup, logging, etc. This method is a counterpart to `prepare`. ``on_finish`` may not produce any output, as it is called after the response has been sent to the client.
(self)
| 294 | pass |
| 295 | |
| 296 | def on_finish(self) -> None: |
| 297 | """Called after the end of a request. |
| 298 | |
| 299 | Override this method to perform cleanup, logging, etc. |
| 300 | This method is a counterpart to `prepare`. ``on_finish`` may |
| 301 | not produce any output, as it is called after the response |
| 302 | has been sent to the client. |
| 303 | """ |
| 304 | pass |
| 305 | |
| 306 | def on_connection_close(self) -> None: |
| 307 | """Called in async handlers if the client closed the connection. |