(self)
| 576 | self._send_file(requested) |
| 577 | |
| 578 | def do_POST(self) -> None: # noqa: N802 - stdlib hook |
| 579 | try: |
| 580 | body = _read_json(self) |
| 581 | except ValueError as exc: |
| 582 | self._send_json({"ok": False, "error": str(exc)}, status=HTTPStatus.BAD_REQUEST) |
| 583 | return |
| 584 | path, _query_params = _query(self.path) |
| 585 | if path == "/api/wiki/ask/stream": |
| 586 | self._handle_wiki_ask_stream(body) |
| 587 | return |
| 588 | self._handle_api(POST_ROUTES, body) |
| 589 | |
| 590 | def log_message(self, fmt: str, *args: Any) -> None: |
| 591 | path, _query_params = _query(self.path) |
nothing calls this directly
no test coverage detected