(headers: Optional[Mapping[str, str]], name: str)
| 197 | |
| 198 | |
| 199 | def _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 | |
| 209 | def _parse_retry_after(headers: Optional[Mapping[str, str]]) -> Optional[float]: |
no outgoing calls
no test coverage detected