]> git.ipfire.org Git - thirdparty/httpx.git/commit
Stream interface (#1550)
authorTom Christie <tom@tomchristie.com>
Tue, 13 Apr 2021 12:14:04 +0000 (13:14 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 12:14:04 +0000 (13:14 +0100)
commit110ce8565259a3c6927352554eccd94ca5804463
treec1602f9b282863a024a858ab2882f075dae36ac5
parent535df6c99832ce65167e6bf36c5b7834a5bb3fe0
Stream interface (#1550)

* Add SyncByteStream, AsyncByteStream to interface

* request.stream and response.stream as httpx.SyncByteStream/httpx.AsyncByteStream

* Update httpx/_transports/base.py

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Update httpx/_transports/default.py

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Move response classes in transports to module level

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
13 files changed:
docs/advanced.md
httpx/__init__.py
httpx/_client.py
httpx/_content.py
httpx/_models.py
httpx/_multipart.py
httpx/_transports/asgi.py
httpx/_transports/base.py
httpx/_transports/default.py
httpx/_transports/mock.py
httpx/_transports/wsgi.py
httpx/_types.py
tests/test_content.py