From 3a010c2e91c789665e603b4658b37b8e9a083155 Mon Sep 17 00:00:00 2001 From: Michael Feil <63565275+michaelfeil@users.noreply.github.com> Date: Thu, 30 May 2024 11:36:15 -0700 Subject: [PATCH] Update asgi.py docstring --- httpx/_transports/asgi.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/httpx/_transports/asgi.py b/httpx/_transports/asgi.py index d1828f254d..8578d4aeff 100644 --- a/httpx/_transports/asgi.py +++ b/httpx/_transports/asgi.py @@ -50,17 +50,8 @@ async def __aiter__(self) -> typing.AsyncIterator[bytes]: class ASGITransport(AsyncBaseTransport): """ A custom AsyncTransport that handles sending requests directly to an ASGI app. - The simplest way to use this functionality is to use the `app` argument. - ``` - client = httpx.AsyncClient(app=app) - ``` - - Alternatively, you can setup the transport instance explicitly. - This allows you to include any additional configuration arguments specific - to the ASGITransport class: - - ``` + ```python transport = httpx.ASGITransport( app=app, root_path="/submount",