]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix Client Docstring and add AsyncClient to API docs (#883)
authorEd Singleton <singletoned@gmail.com>
Sat, 28 Mar 2020 16:22:10 +0000 (16:22 +0000)
committerGitHub <noreply@github.com>
Sat, 28 Mar 2020 16:22:10 +0000 (17:22 +0100)
* Fix docstring of Client

* Add AsyncClient to API docs

* Add AsyncClient to ToC

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
docs/api.md
httpx/_client.py

index 3889d8cf67835912d2b993f80e600275fc240ba1..c63d4ecd3940a62bf78dc8afd46747b5478143dc 100644 (file)
     :docstring:
     :members: headers cookies params request get head options post put patch delete build_request send close
 
+## `AsyncClient`
+
+::: httpx.AsyncClient
+    :docstring:
+    :members: headers cookies params request get head options post put patch delete build_request send
+
+
 ## `Response`
 
 *An HTTP response.*
index 2a310e26d18810d371bd7f184840e04910248ab7..397652231c2cf44fab3fa11dab6580984e1f0a83 100644 (file)
@@ -426,7 +426,7 @@ class Client(BaseClient):
     request URLs.
     * **dispatch** - *(optional)* A dispatch class to use for sending requests
     over the network.
-    * **app** - *(optional)* An ASGI application to send requests to,
+    * **app** - *(optional)* An WSGI application to send requests to,
     rather than sending actual network requests.
     * **trust_env** - *(optional)* Enables or disables usage of environment
     variables for configuration.