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

Method _get_headers

src/services/cloud_mail.py:157–166  ·  view source on GitHub ↗

构造请求头

(self, token: Optional[str] = None)

Source from the content-addressed store, hash-verified

155 return token
156
157 def _get_headers(self, token: Optional[str] = None) -> Dict[str, str]:
158 """构造请求头"""
159 if token is None:
160 token = self._get_token()
161
162 return {
163 "Authorization": token,
164 "Content-Type": "application/json",
165 "Accept": "application/json",
166 }
167
168 def _make_request(
169 self,

Callers 1

_make_requestMethod · 0.95

Calls 1

_get_tokenMethod · 0.95

Tested by

no test coverage detected