From: Michael Feil <63565275+michaelfeil@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:36:07 +0000 (-0700) Subject: Update asgi.py docstring (#3210) X-Git-Tag: 0.27.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e9dfb3997ab07353bbe98f9b5a6e69b7701c70;p=thirdparty%2Fhttpx.git Update asgi.py docstring (#3210) Co-authored-by: Tom Christie --- diff --git a/httpx/_transports/asgi.py b/httpx/_transports/asgi.py index d1828f25..8578d4ae 100644 --- a/httpx/_transports/asgi.py +++ b/httpx/_transports/asgi.py @@ -50,17 +50,8 @@ class ASGIResponseStream(AsyncByteStream): 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",