MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / _header_get

Function _header_get

sdks/python/src/e2a/v1/errors.py:199–206  ·  view source on GitHub ↗
(headers: Optional[Mapping[str, str]], name: str)

Source from the content-addressed store, hash-verified

197
198
199def _header_get(headers: Optional[Mapping[str, str]], name: str) -> Optional[str]:
200 if not headers:
201 return None
202 lower = name.lower()
203 for k, v in headers.items():
204 if k.lower() == lower:
205 return v
206 return None
207
208
209def _parse_retry_after(headers: Optional[Mapping[str, str]]) -> Optional[float]:

Callers 2

_parse_retry_afterFunction · 0.85
from_api_exceptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected