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 <florimond.manca@gmail.com>

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
This commit is contained in:
Ed Singleton 2020-03-28 16:22:10 +00:00 committed by GitHub
parent 939f3ce7ce
commit fc980e7792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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.*

View 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.