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

Method _start_sse

gemini_web2api/server.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.wfile.write(body)
55
56 def _start_sse(self):
57 self.send_response(200)
58 self.send_header("Content-Type", "text/event-stream")
59 self.send_header("Cache-Control", "no-cache")
60 self.send_header("Access-Control-Allow-Origin", "*")
61 self.end_headers()
62
63 def _parse_body(self, body: bytes) -> dict:
64 try:

Callers 2

_handle_chatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected