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

Method _admin_headers

src/services/temp_mail.py:280–290  ·  view source on GitHub ↗

构造 admin 请求头

(self)

Source from the content-addressed store, hash-verified

278 return None, False
279
280 def _admin_headers(self) -> Dict[str, str]:
281 """构造 admin 请求头"""
282 headers = {
283 "x-admin-auth": self.config["admin_password"],
284 "Content-Type": "application/json",
285 "Accept": "application/json",
286 }
287 custom_auth = (self.config.get("custom_auth") or "").strip()
288 if custom_auth:
289 headers["x-custom-auth"] = custom_auth
290 return headers
291
292 def _extract_mails_from_response(self, response: Any) -> List[Dict[str, Any]]:
293 """

Callers 1

_make_requestMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected