Expose ASGIDispatch & WSGIDispatch in the 'dispatch' namespace. (#407)
This commit is contained in:
parent
ea137a96d9
commit
5ced56b5b5
@ -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)
|
||||
```
|
||||
|
||||
|
||||
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user