]>
git.ipfire.org Git - thirdparty/httpx.git/log
Tom Christie [Thu, 5 Dec 2019 17:25:43 +0000 (17:25 +0000)]
Add Client.stream() method. (#600)
* Add Client.stream() method.
* Add top-level stream API
* Documentation
Tom Christie [Thu, 5 Dec 2019 12:28:45 +0000 (12:28 +0000)]
Update changelog to include 'master' (#596)
* Update changelog to include 'master'
* Include PR references
Tom Christie [Thu, 5 Dec 2019 11:46:11 +0000 (11:46 +0000)]
Drop write_no_block from backends. (#594)
* Drop write_no_block
* Drop redundant code from Trio backend
Tom Christie [Thu, 5 Dec 2019 11:39:28 +0000 (11:39 +0000)]
stream -> stream_bytes, raw -> stream_raw (#599)
Tom Christie [Thu, 5 Dec 2019 11:03:27 +0000 (11:03 +0000)]
Fix Timeout -> TimeoutException in test case (#598)
Tom Christie [Thu, 5 Dec 2019 10:27:16 +0000 (10:27 +0000)]
Improve backend docs, particularly wrt. autodetection (#595)
* Improve backend docs, particularly wrt. autodetection
* Resolve typo.
Tom Christie [Thu, 5 Dec 2019 10:03:24 +0000 (10:03 +0000)]
Update CHANGELOG.md
Tom Christie [Thu, 5 Dec 2019 09:40:24 +0000 (09:40 +0000)]
Tweak docstring
Tom Christie [Thu, 5 Dec 2019 09:38:48 +0000 (09:38 +0000)]
Allow default+override timeout style (#593)
* Allow styles like: httpx.Timeout(5.0, pool_timeout=None)
* Update timeout docs
* Minor tweaks to sub headings in timeout docs
* Fixing up Timeout docs
* RequestTimeout -> TimeoutException
* Tweak timeout docs
Tom Christie [Wed, 4 Dec 2019 17:21:42 +0000 (17:21 +0000)]
Update index.md
Tom Christie [Wed, 4 Dec 2019 17:21:17 +0000 (17:21 +0000)]
Update README.md
Tom Christie [Wed, 4 Dec 2019 11:57:02 +0000 (11:57 +0000)]
Alpha note, and recommendations on pinning versions (#590)
Tom Christie [Wed, 4 Dec 2019 11:54:39 +0000 (11:54 +0000)]
Differentiate between `timeout=None` and `timeout=UNSET`. (#592)
* TimeoutConfig -> Timeout
* Timeout=None should mean what it says.
* Drop optional timeout on internal client methods
Tom Christie [Wed, 4 Dec 2019 11:39:45 +0000 (11:39 +0000)]
TimeoutConfig -> Timeout (#591)
han-solo [Wed, 4 Dec 2019 10:05:33 +0000 (15:35 +0530)]
Fixed version requirement for rfc3986. Issue reference #504 (#589)
Tom Christie [Wed, 4 Dec 2019 09:54:05 +0000 (09:54 +0000)]
Update README.md
Tom Christie [Mon, 2 Dec 2019 19:52:29 +0000 (19:52 +0000)]
Rename http2 switch (#586)
* Simplify HTTP version config, and switch HTTP/2 off by default
* HTTP/2 docs
* HTTP/2 interlinking in docs
* Add concurrency auto-detection
* Add sniffio
* Rename HTTP2 switch on client
* http_2 -> http2
Tom Christie [Mon, 2 Dec 2019 19:26:16 +0000 (19:26 +0000)]
Concurrency autodetection (#585)
* Simplify HTTP version config, and switch HTTP/2 off by default
* HTTP/2 docs
* HTTP/2 interlinking in docs
* Add concurrency auto-detection
* Add sniffio
Tom Christie [Mon, 2 Dec 2019 17:07:04 +0000 (17:07 +0000)]
Better HTTP/2 defaults. (#584)
* Simplify HTTP version config, and switch HTTP/2 off by default
* HTTP/2 docs
* HTTP/2 interlinking in docs
Tom Christie [Mon, 2 Dec 2019 12:11:15 +0000 (12:11 +0000)]
Minor test fixes (#583)
* Minor test fixes
* Fix multipart test to less ambiguous file extension -> mime type check
* Include a no-file-extension case in multipart tests
Mattwmaster58 [Mon, 2 Dec 2019 11:56:25 +0000 (04:56 -0700)]
Clarify multipart documentation (#580)
*Clarify multipart behvaiour
Florimond Manca [Sun, 1 Dec 2019 10:16:28 +0000 (11:16 +0100)]
Don't use background task in HTTP/1.1 dispatcher (#569)
Tom Christie [Sat, 30 Nov 2019 21:46:07 +0000 (21:46 +0000)]
Update advanced.md
Mattwmaster58 [Sat, 30 Nov 2019 19:46:44 +0000 (12:46 -0700)]
Files without a filename should not set a Content-Type in multipart data. (#520)
* File upoads with no filename should not set a Content-Type in their multipart data.
* Update type annotations to allow file uploads to be a string
Tom Christie [Sat, 30 Nov 2019 18:38:27 +0000 (18:38 +0000)]
Link to ASGI docs (#577)
Tom Christie [Sat, 30 Nov 2019 18:02:46 +0000 (18:02 +0000)]
Add Response.stream_lines (#575)
Tom Christie [Sat, 30 Nov 2019 17:43:48 +0000 (17:43 +0000)]
Add Response.is_error (#574)
Casey [Sat, 30 Nov 2019 15:35:10 +0000 (07:35 -0800)]
Preserve list type query paramaters when merging QueryParams objects (#546) (#547)
Tom Christie [Sat, 30 Nov 2019 14:28:39 +0000 (14:28 +0000)]
Drop MessageLoggerASGIMiddleware. (#573)
Tom Christie [Sat, 30 Nov 2019 12:06:16 +0000 (12:06 +0000)]
Ensure Authorization header has priority over .netrc
Florimond Manca [Sat, 30 Nov 2019 11:50:13 +0000 (12:50 +0100)]
Drop nox in favor of vanilla scripts (#566)
* Drop nox in favor of vanilla scripts
* Use named stages
* Fix attrs dependency resolution madness
* Add missing mkautodoc dev dependency
* Add missing install step on windows build
* Explicitly define stage order so that timed out Windows build runs last
* Add missing dev dependency on Black
* Clean up contributing guide
* Separate docs into docs-build and docs-serve
Florimond Manca [Fri, 29 Nov 2019 21:16:32 +0000 (22:16 +0100)]
Refactor start_tls tests (#567)
* Refactor start_tls tests
* Clean up read_response()
Tom Christie [Fri, 29 Nov 2019 12:01:51 +0000 (12:01 +0000)]
Pool timeouts should be on the TimeoutConfig, not PoolLimits (#563)
* Pool timeouts should be on the TimeoutConfig, not PoolLimits
* Linting
* Fix type annotation
* Linting
Tom Christie [Fri, 29 Nov 2019 11:45:40 +0000 (11:45 +0000)]
Drop `iterate_in_threadpool` and `iterate` (#564)
* Drop iterate_in_threadpool
* Drop iterate from concurrency backends
Tom Christie [Fri, 29 Nov 2019 11:21:46 +0000 (11:21 +0000)]
Drop Queue from concurrency backends, since it's no longer required (#562)
* Drop Queue from concurrency backends, since it's no longer required
* Drop unused import
Tom Christie [Fri, 29 Nov 2019 11:21:40 +0000 (11:21 +0000)]
Clean up '_dispatcher_for_request' into 'dispatcher_for_url' (#561)
Tom Christie [Fri, 29 Nov 2019 09:07:53 +0000 (09:07 +0000)]
Simplify ASGI dispatch (#560)
* Simplify ASGI dispatch
* Blackify
* Linting
Tom Christie [Thu, 28 Nov 2019 12:33:53 +0000 (12:33 +0000)]
Drop erronous references to AsyncClient (#559)
Tom Christie [Thu, 28 Nov 2019 12:31:15 +0000 (12:31 +0000)]
Refactor netrc handling (#558)
* Refactor netrc handling
* Linting
* Import sorting
* Import sorting
Tom Christie [Wed, 27 Nov 2019 14:35:37 +0000 (14:35 +0000)]
Update client.py
Tom Christie [Wed, 27 Nov 2019 13:35:02 +0000 (13:35 +0000)]
Version 0.8.0
Tom Christie [Wed, 27 Nov 2019 12:10:10 +0000 (12:10 +0000)]
Client handles redirect + auth (#552)
* Drop sync client
* Drop unused imports
* Async only
* Update tests/test_decoders.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Linting
* Update docs for async-only
* Import sorting
* Add async notes to docs
* Update README for 0.8 async switch
* Move auth away from middleware where possible
* Drop middleware sub-package
* Client.dispatcher -> Client.dispatch
* Docs tweak
* Linting
* Fix type checking issue
* Import ordering
* Fix up docstrings
* Minor docs fixes
* Linting
* Remove unused import
Tom Christie [Wed, 27 Nov 2019 10:43:42 +0000 (10:43 +0000)]
Drop sync (#544)
Drop sync client
Taoufik [Tue, 26 Nov 2019 09:05:19 +0000 (10:05 +0100)]
Stringify the given file name (#545)
Florimond Manca [Fri, 22 Nov 2019 08:34:09 +0000 (09:34 +0100)]
Fix race condition on stream.read (#535)
* Fix race condition on stream.read
* Refactor run_concurrently
toppk [Fri, 22 Nov 2019 08:33:40 +0000 (03:33 -0500)]
Handle h11.Connection.next_event() RemoteProtocolError (#524)
raise (new) ConnectionClosed exception if this occurs when
socket is closed, otherwise reuse ProtocolError exception.
Add test case for ConnectionClosed behavior.
Resolves #96
Florimond Manca [Fri, 22 Nov 2019 08:19:39 +0000 (09:19 +0100)]
Document when to use AsyncClient (#534)
* Document when to use AsyncClient
* Strip advice on reverting to Requests
Jonas Lundberg [Wed, 20 Nov 2019 07:48:58 +0000 (08:48 +0100)]
Add Unix Domain Sockets section to advanced docs page (#542)
Jonas Lundberg [Tue, 19 Nov 2019 22:02:08 +0000 (23:02 +0100)]
Add support for unix domain sockets (#511)
* Add and implement open_uds_stream in concurrency backends
* Add uds arg to BaseClient and select tcp or uds in HttpConnection
* Make open stream methods in backends more explicit
* Close sentence
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Refactor uds concurrency test
* Remove redundant uds test assertions
Florimond Manca [Tue, 19 Nov 2019 21:06:04 +0000 (22:06 +0100)]
Release 0.7.8 (#536)
Jonas Lundberg [Mon, 18 Nov 2019 12:16:06 +0000 (13:16 +0100)]
Document mocking compatibility (#537)
Seth Michael Larson [Sun, 17 Nov 2019 11:50:54 +0000 (05:50 -0600)]
Add support for proxy tunnels for Python 3.6 + asyncio. (#521)
* Backport start_tls() support for Python 3.6
* Remove version check in start_tls test
Tom Christie [Fri, 15 Nov 2019 21:56:02 +0000 (21:56 +0000)]
Version 0.7.7 (#532)
Tom Christie [Fri, 15 Nov 2019 21:31:15 +0000 (21:31 +0000)]
Fix redirect cookie behavior (#529)
* Fix redirect cookie behavior
* Drop flake8-comprehensions
* Add redirect cookie tests
Jonas Lundberg [Fri, 8 Nov 2019 16:09:38 +0000 (17:09 +0100)]
Rename BaseTCPStream/TCPStream to BaseSocketStream/SocketStream (#517)
Florimond Manca [Thu, 7 Nov 2019 23:35:34 +0000 (00:35 +0100)]
Improve robustness of live HTTP/2 test (#512)
Florimond Manca [Thu, 7 Nov 2019 09:46:36 +0000 (10:46 +0100)]
Add docs on SSL certificates (#510)
* Add docs on SSL certificates
* Update docs on verify and cert params
* Tweak wording
* Tweak wording about localhost
* Remove advanced warning
* Rephrase introduction of local HTTPS section
Florimond Manca [Wed, 6 Nov 2019 21:56:25 +0000 (22:56 +0100)]
Add DEBUG logs of HTTP requests (#502)
Florimond Manca [Wed, 6 Nov 2019 11:04:20 +0000 (12:04 +0100)]
Refactor debug and trace log tests (#506)
Florimond Manca [Sat, 2 Nov 2019 21:40:15 +0000 (22:40 +0100)]
Convert debug logs to trace logs (#500)
* Convert debug logs to trace logs
* Update environment variables docs
* Update logging test
Florimond Manca [Sat, 2 Nov 2019 21:31:33 +0000 (22:31 +0100)]
Remove pin on uvloop in test-requirements (#498)
Florimond Manca [Sat, 2 Nov 2019 11:09:26 +0000 (12:09 +0100)]
Release 0.7.6 (#499)
Tom Christie [Wed, 30 Oct 2019 15:21:39 +0000 (15:21 +0000)]
First pass at autodoc support (#464)
* First pass at autodoc support
* Add mkautodoc requirement for docs builds
* Linting
* pip install httpx when building docs, to make it available to mkautodoc
* Fix code example in docstring slightly
* Use latest mkautodoc to resolve rendering of code snippets in docstrings
* Fill in 'Helper functions' API docs
* First pass at documenting Client
* Add autodoc for Client
* Update to mkautodoc 0.1
* Fix typos
Florimond Manca [Tue, 22 Oct 2019 20:04:42 +0000 (22:04 +0200)]
Reorganize timeout config tests (#491)
Jamie Hewland [Tue, 22 Oct 2019 20:01:40 +0000 (22:01 +0200)]
asyncio: Wait for the stream to close when closing (#494)
Jt Miclat [Sun, 20 Oct 2019 17:17:22 +0000 (01:17 +0800)]
Change Python 3.8-dev to 3.8 in Travis (#477)
Yeray Diaz Diaz [Sun, 20 Oct 2019 12:25:00 +0000 (13:25 +0100)]
Multipart files tweaks (#482)
* Allow filenames as None in multipart encoding
* Allow str file contents in multipart encode
* Some formatting changes on `advanced.md`
* Document multipart file encoding in the advanced docs
* Update docs/advanced.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Jamie Hewland [Sun, 20 Oct 2019 10:59:16 +0000 (12:59 +0200)]
Make start_tls a method on streams & return a new stream (#484)
* Move start_tls to stream & return a new stream
* asyncio: Keep a reference to the inner stream when upgrading to TLS
Florimond Manca [Sat, 19 Oct 2019 13:05:26 +0000 (15:05 +0200)]
Document client-level configuration (#488)
* Document client-level configuration
* Fix typo
Yeray Diaz Diaz [Sat, 19 Oct 2019 12:51:27 +0000 (13:51 +0100)]
Drop proxies parameter from the high level API (#485)
* Drop `proxies` argument from high level API
* Update state of Digest auth in docs
* Add note on not supporting proxies at request level
* Grammar tweak
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Florimond Manca [Sat, 19 Oct 2019 11:52:44 +0000 (13:52 +0200)]
Document client block-usage and close() (#487)
* Document client context manager vs close() usage
* Convert client snippets to use context-managed syntax
mariaS210 [Thu, 17 Oct 2019 15:58:11 +0000 (18:58 +0300)]
Add logic for determining if a URL should be proxied (#472)
Mateusz Woś [Wed, 16 Oct 2019 16:27:45 +0000 (18:27 +0200)]
Add timeout fine-tunning advanced docs section (#476)
* Add timeout fine-tunning advanced docs section
* Rephrase part of timeout documentation
Can Sarıgöl [Wed, 16 Oct 2019 13:31:47 +0000 (16:31 +0300)]
Cache netrc authentication per-client (#400)
Florimond Manca [Sat, 12 Oct 2019 16:14:44 +0000 (18:14 +0200)]
Add test script (#451)
camellia256 [Sat, 12 Oct 2019 15:34:50 +0000 (23:34 +0800)]
Rely on getproxies for all proxy environment variables (#470)
Seth Michael Larson [Thu, 10 Oct 2019 14:18:22 +0000 (09:18 -0500)]
Release 0.7.5 (#468)
Seth Michael Larson [Thu, 10 Oct 2019 12:05:22 +0000 (07:05 -0500)]
Add hints for debugging CI issues (#399)
Florimond Manca [Thu, 10 Oct 2019 12:02:17 +0000 (14:02 +0200)]
Allow serving docs via nox (#450)
Florimond Manca [Thu, 10 Oct 2019 12:01:23 +0000 (14:01 +0200)]
Add start_tls to Trio backend (#467)
Can Sarıgöl [Wed, 9 Oct 2019 21:22:18 +0000 (00:22 +0300)]
Add Windows to the build matrix (#457)
* Added win32 to the build matrix
* removed os: linux due to travis default
* chopped empty line
* applied only python 3.7 tests on Windows
* added desc for windows allow failures
* removed duplicate desc
Florimond Manca [Wed, 9 Oct 2019 18:22:32 +0000 (20:22 +0200)]
Make nox always reuse virtualenvs by default (#460)
* Always reuse venvs by default
* Update contributing guide
* Install with --upgrade
thebigmunch [Wed, 9 Oct 2019 18:01:37 +0000 (14:01 -0400)]
Fix some grammar in Advanced docs (#461)
ImPerat0R_ [Wed, 9 Oct 2019 16:34:54 +0000 (00:34 +0800)]
Add language syntax highlighting in Quickstart (#466)
Florimond Manca [Tue, 8 Oct 2019 20:12:04 +0000 (22:12 +0200)]
Allow lists in query params (#386)
Jt Miclat [Sun, 6 Oct 2019 00:20:18 +0000 (08:20 +0800)]
Add documentation for requests.Session compatibility (#449)
Florimond Manca [Sun, 6 Oct 2019 00:12:06 +0000 (02:12 +0200)]
Don't check trio import in definition of backend fixture params (#447)
Josep Cugat [Sat, 5 Oct 2019 13:26:34 +0000 (15:26 +0200)]
Remove wheels package from test-requirements.txt (#448)
Florimond Manca [Fri, 4 Oct 2019 20:36:06 +0000 (22:36 +0200)]
Fix flaky Response.elapsed tests (#446)
Andrew M. White [Fri, 4 Oct 2019 19:46:58 +0000 (12:46 -0700)]
Ensure py.typed makes it into source distributions. (#441)
Can Sarıgöl [Fri, 4 Oct 2019 09:33:18 +0000 (12:33 +0300)]
Don't include username/password components in `Host` header (#417)
* removed auth and port from host of header
* used URL attribute rather _uri_reference
* reverted removing port into host
* reverted username and password from header
* applied new copy_with with username and password
Can Sarıgöl [Fri, 4 Oct 2019 08:17:25 +0000 (11:17 +0300)]
added authority copy feature in URL.copy_with (#436)
nwalsh1995 [Fri, 4 Oct 2019 01:08:27 +0000 (18:08 -0700)]
Fix link to parallel page from async page (#440)
Davit Tovmasyan [Fri, 4 Oct 2019 00:47:19 +0000 (04:47 +0400)]
Document the files parameter on .post(), .patch(), and .put() (#409) (#414)
Jt Miclat [Fri, 4 Oct 2019 00:46:24 +0000 (08:46 +0800)]
Document compatibility difference for get, delete, head, and options (#418)
Josep Cugat [Thu, 3 Oct 2019 21:35:38 +0000 (23:35 +0200)]
Build and upload universal wheels to PyPI (#439)
Josep Cugat [Thu, 3 Oct 2019 08:18:10 +0000 (10:18 +0200)]
Revert "Use Python 3.8 asyncio.Stream where possible (#369)" (#423)
This reverts commit
71cbde8ba4cab32dd96ccb91e9db20216587fae9.
Kyle Galbraith [Wed, 2 Oct 2019 16:46:54 +0000 (09:46 -0700)]
Fix typos, spelling issues, and grammar in docs (#426)
Seth Michael Larson [Wed, 2 Oct 2019 15:34:00 +0000 (10:34 -0500)]
Python 3.8-dev builds on Travis (#425)
Josep Cugat [Tue, 1 Oct 2019 18:37:05 +0000 (20:37 +0200)]
Make HTTPError importable from the top-level (#421)