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

Method __call__

src/requests/auth.py:119–121  ·  view source on GitHub ↗
(self, r: PreparedRequest)

Source from the content-addressed store, hash-verified

117 """Attaches HTTP Proxy Authentication to a given Request object."""
118
119 def __call__(self, r: PreparedRequest) -> PreparedRequest:
120 r.headers["Proxy-Authorization"] = _basic_auth_str(self.username, self.password)
121 return r
122
123
124class HTTPDigestAuth(AuthBase):

Callers

nothing calls this directly

Calls 1

_basic_auth_strFunction · 0.85

Tested by

no test coverage detected