From fc980e779276e46ce2e2aad10a8ced1d50334306 Mon Sep 17 00:00:00 2001 From: Ed Singleton Date: Sat, 28 Mar 2020 16:22:10 +0000 Subject: [PATCH] Fix Client Docstring and add AsyncClient to API docs (#883) * Fix docstring of Client * Add AsyncClient to API docs * Add AsyncClient to ToC Co-Authored-By: Florimond Manca Co-authored-by: Florimond Manca --- docs/api.md | 7 +++++++ httpx/_client.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 3889d8cf..c63d4ecd 100644 --- a/docs/api.md +++ b/docs/api.md @@ -38,6 +38,13 @@ :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.* diff --git a/httpx/_client.py b/httpx/_client.py index 2a310e26..39765223 100644 --- a/httpx/_client.py +++ b/httpx/_client.py @@ -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. -- 2.47.3