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 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)

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