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

Method handle_async_request

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

Source from the content-addressed store, hash-verified

687
688class ConsumeBodyTransport(httpx.MockTransport):
689 async def handle_async_request(self, request: httpx.Request) -> httpx.Response:
690 assert isinstance(request.stream, httpx.AsyncByteStream)
691 [_ async for _ in request.stream]
692 return self.handler(request) # type: ignore[return-value]
693
694
695@pytest.mark.anyio

Callers 2

test_asgi_transportFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected