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

Method sync_auth_flow

tests/client/test_auth.py:147–152  ·  view source on GitHub ↗
(
        self, request: httpx.Request
    )

Source from the content-addressed store, hash-verified

145 self._async_lock = anyio.Lock()
146
147 def sync_auth_flow(
148 self, request: httpx.Request
149 ) -> typing.Generator[httpx.Request, httpx.Response, None]:
150 with self._lock:
151 request.headers["Authorization"] = "sync-auth"
152 yield request
153
154 async def async_auth_flow(
155 self, request: httpx.Request

Calls

no outgoing calls

Tested by

no test coverage detected