MCPcopy
hub / github.com/Sophomoresty/gemini-web2api / _parse_body

Method _parse_body

gemini_web2api/server.py:63–67  ·  view source on GitHub ↗
(self, body: bytes)

Source from the content-addressed store, hash-verified

61 self.end_headers()
62
63 def _parse_body(self, body: bytes) -> dict:
64 try:
65 return json.loads(body)
66 except (json.JSONDecodeError, ValueError):
67 return None
68
69 def _authorized(self):
70 keys = CONFIG.get("api_keys") or []

Callers 3

_handle_chatMethod · 0.95
_handle_responsesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected