MCPcopy
hub / github.com/encode/httpx / __init__

Method __init__

httpx/_auth.py:187–191  ·  httpx/_auth.py::DigestAuth.__init__
(self, username: str | bytes, password: str | bytes)

Source from the content-addressed store, hash-verified

185 }
186
187 def __init__(self, username: str | bytes, password: str | bytes) -> None:
188 self._username = to_bytes(username)
189 self._password = to_bytes(password)
190 self._last_challenge: _DigestAuthChallenge | None = None
191 self._nonce_count = 1
192
193 def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
194 if self._last_challenge:

Callers

nothing calls this directly

Calls 1

to_bytesFunction · 0.85

Tested by

no test coverage detected