]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update asgi.py docstring (#3210)
authorMichael Feil <63565275+michaelfeil@users.noreply.github.com>
Thu, 6 Jun 2024 15:36:07 +0000 (08:36 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Jun 2024 15:36:07 +0000 (16:36 +0100)
Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_transports/asgi.py

index d1828f254d72751eb0447a8b3c6cebe02dc2d293..8578d4aeff207f2b159ed6fb9fd43385e27ced69 100644 (file)
@@ -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",