(flow: http.HTTPFlow)
| 16 | |
| 17 | |
| 18 | def request(flow: http.HTTPFlow) -> None: |
| 19 | # a random condition to make this example a bit more interactive |
| 20 | if flow.request.pretty_url == "http://example.com/path": |
| 21 | logging.info("Shutting down everything...") |
| 22 | ctx.master.shutdown() |