Expose ASGIDispatch & WSGIDispatch in the 'dispatch' namespace. (#407)

This commit is contained in:
Ahmed Maher 2019-09-28 22:55:19 +03:00 committed by Seth Michael Larson
parent ea137a96d9
commit 5ced56b5b5
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@ For example:
```python
# Instantiate a client that makes WSGI requests with a client IP of "1.2.3.4".
dispatch = httpx.WSGIDispatch(app=app, remote_addr="1.2.3.4")
dispatch = httpx.dispatch.WSGIDispatch(app=app, remote_addr="1.2.3.4")
client = httpx.Client(dispatch=dispatch)
```

View File

@ -2,3 +2,7 @@
Dispatch classes handle the raw network connections and the implementation
details of making the HTTP request and receiving the response.
"""
from .asgi import ASGIDispatch
from .wsgi import WSGIDispatch
__all__ = ["ASGIDispatch", "WSGIDispatch"]