MCPcopy Create free account
hub / github.com/SuperJJ007/CSSwitch / _open

Function _open

proxy/csswitch_proxy.py:286–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 q = queue.Queue(maxsize=1)
285
286 def _open():
287 try:
288 q.put(("ok", open_stream(url, data, headers)))
289 except BaseException as e:
290 q.put(("err", e))
291
292 threading.Thread(target=_open, daemon=True).start()
293 keepalive = b": csswitch-keepalive\n\n"

Callers

nothing calls this directly

Calls 1

open_streamFunction · 0.85

Tested by

no test coverage detected