MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / session

Method session

src/core/http_client.py:74–83  ·  view source on GitHub ↗

获取会话对象(单例)

(self)

Source from the content-addressed store, hash-verified

72
73 @property
74 def session(self) -> Session:
75 """获取会话对象(单例)"""
76 if self._session is None:
77 self._session = Session(
78 proxies=self.proxies,
79 impersonate=self.config.impersonate,
80 verify=self.config.verify_ssl,
81 timeout=self.config.timeout
82 )
83 return self._session
84
85 def request(
86 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected