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

Function _get_httpx_client

gemini_web2api/gemini.py:39–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def _get_httpx_client():
40 global _httpx_client
41 if _httpx_client is None and HAS_HTTPX:
42 proxy = CONFIG.get("proxy")
43 transport = httpx.HTTPTransport(proxy=proxy) if proxy else None
44 _httpx_client = httpx.Client(transport=transport, timeout=CONFIG["request_timeout_sec"], verify=True)
45 return _httpx_client
46
47
48def load_cookie() -> tuple:

Callers 1

generate_streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected