MCPcopy
hub / github.com/psf/requests / get_proxy

Function get_proxy

src/requests/utils.py:819–820  ·  view source on GitHub ↗
(key: str)

Source from the content-addressed store, hash-verified

817 # Prioritize lowercase environment variables over uppercase
818 # to keep a consistent behaviour with other http projects (curl, wget).
819 def get_proxy(key: str) -> str | None:
820 return os.environ.get(key) or os.environ.get(key.upper())
821
822 # First check whether no_proxy is defined. If it is, check that the URL
823 # we're getting isn't in the no_proxy list.

Callers 1

should_bypass_proxiesFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected