MCPcopy
hub / github.com/masterking32/MasterHttpRelayVPN / header_value

Function header_value

src/proxy/proxy_support.py:100–106  ·  view source on GitHub ↗
(headers: dict | None, name: str)

Source from the content-addressed store, hash-verified

98
99
100def header_value(headers: dict | None, name: str) -> str:
101 if not headers:
102 return ""
103 for key, value in headers.items():
104 if key.lower() == name:
105 return str(value)
106 return ""
107
108
109def should_trace_host(host: str, trace_suffixes: tuple[str, ...]) -> bool:

Callers 6

_cache_allowedMethod · 0.85
_relay_http_streamMethod · 0.85
_relay_smartMethod · 0.85
_is_likely_downloadMethod · 0.85
_do_httpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected