Called by the server to commence a graceful shutdown.
(self)
| 338 | self.handle_events() |
| 339 | |
| 340 | def shutdown(self) -> None: |
| 341 | class="st">""" |
| 342 | Called by the server to commence a graceful shutdown. |
| 343 | class="st">""" |
| 344 | if self.cycle is None or self.cycle.response_complete: |
| 345 | event = h11.ConnectionClosed() |
| 346 | self.conn.send(event) |
| 347 | self.transport.close() |
| 348 | else: |
| 349 | self.cycle.keep_alive = False |
| 350 | |
| 351 | def pause_writing(self) -> None: |
| 352 | class="st">""" |