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

Method __init__

httpx/_auth.py:132–133  ·  view source on GitHub ↗
(self, username: str | bytes, password: str | bytes)

Source from the content-addressed store, hash-verified

130 """
131
132 def __init__(self, username: str | bytes, password: str | bytes) -> None:
133 self._auth_header = self._build_auth_header(username, password)
134
135 def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
136 request.headers["Authorization"] = self._auth_header

Callers

nothing calls this directly

Calls 1

_build_auth_headerMethod · 0.95

Tested by

no test coverage detected