(self)
| 946 | self._handle_index() |
| 947 | return |
| 948 | if parsed.path == "/run": |
| 949 | self._handle_run(parsed) |
| 950 | return |
| 951 | if parsed.path == "/log": |
| 952 | self._handle_log(parsed) |
| 953 | return |
| 954 | if parsed.path == "/step_log": |
| 955 | self._handle_step_log(parsed) |
| 956 | return |
| 957 | if parsed.path == "/api/run_state": |
| 958 | self._handle_run_state(parsed) |
| 959 | return |
| 960 | if parsed.path == "/api/log_chunk": |
| 961 | self._handle_api_log_chunk(parsed) |
| 962 | return |
| 963 | if parsed.path == "/rerun": |
| 964 | self._handle_rerun(parsed) |
| 965 | return |
| 966 | self._send_json(404, {"error": "not found"}) |
| 967 | |
| 968 | def do_POST(self) -> None: # noqa: N802 |
| 969 | parsed = urlparse(self.path) |
| 970 | if parsed.path != "/rerun": |
| 971 | self._send_json(404, {"error": "not found"}) |
| 972 | return |
| 973 | |
| 974 | length = int(self.headers.get("Content-Length", "0") or 0) |
| 975 | body = self.rfile.read(length).decode("utf-8") if length > 0 else "" |
| 976 | target = None |
| 977 | if body: |
nothing calls this directly
no test coverage detected