MCPcopy Index your code
hub / github.com/HisMax/RedInk / _headers

Method _headers

backend/generators/image_api_client.py:108–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 )
107
108 def _headers(self) -> Dict[str, str]:
109 return {
110 "Authorization": f"Bearer {self.policy.api_key}",
111 "Content-Type": "application/json",
112 }
113
114 def _sleep_for_retry(self, attempt: int, response: Optional[requests.Response] = None):
115 retry_after = _parse_retry_after(response.headers.get("Retry-After")) if response else None

Callers 1

_post_jsonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected