MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / do_POST

Method do_POST

deployments/desktop/server.py:578–588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

_send_jsonMethod · 0.95
_handle_apiMethod · 0.95
_read_jsonFunction · 0.85
_queryFunction · 0.85

Tested by

no test coverage detected