MCPcopy
hub / github.com/openai/openai-python / _has_header

Function _has_header

src/openai/lib/azure.py:47–49  ·  view source on GitHub ↗
(headers: Headers, header: str)

Source from the content-addressed store, hash-verified

45
46
47def _has_header(headers: Headers, header: str) -> bool:
48 header = header.lower()
49 return any(key.lower() == header for key in headers)
50
51
52def _has_auth_header(headers: Headers) -> bool:

Callers 3

_has_auth_headerFunction · 0.70
_prepare_optionsMethod · 0.70
_prepare_optionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected