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

Method _send_json

deployments/desktop/server.py:491–498  ·  view source on GitHub ↗
(self, payload: Dict[str, Any], status: int = 200)

Source from the content-addressed store, hash-verified

489 server_version = "PaperFlowGUI/0.1"
490
491 def _send_json(self, payload: Dict[str, Any], status: int = 200) -> None:
492 data = _json_bytes(payload)
493 self.send_response(status)
494 self.send_header("Content-Type", "application/json; charset=utf-8")
495 self.send_header("Content-Length", str(len(data)))
496 self.send_header("Cache-Control", "no-store")
497 self.end_headers()
498 self.wfile.write(data)
499
500 def _send_file(self, path: Path) -> None:
501 if not path.exists() or not path.is_file():

Callers 4

_send_fileMethod · 0.95
_handle_apiMethod · 0.95
do_GETMethod · 0.95
do_POSTMethod · 0.95

Calls 1

_json_bytesFunction · 0.85

Tested by

no test coverage detected