]>
git.ipfire.org Git - thirdparty/httpx.git/log
Tom Christie [Tue, 20 Aug 2019 13:26:43 +0000 (14:26 +0100)]
Address review comments
Tom Christie [Tue, 20 Aug 2019 12:30:54 +0000 (13:30 +0100)]
Add Client(http_versions=...) support
Tom Christie [Tue, 20 Aug 2019 12:08:24 +0000 (13:08 +0100)]
Merge branch 'master' into protocol-support
Tom Christie [Tue, 20 Aug 2019 11:58:03 +0000 (12:58 +0100)]
Drop unneccessary 'sorted'
Tom Christie [Tue, 20 Aug 2019 11:56:19 +0000 (12:56 +0100)]
Added http_versions to dispatch interface
Tom Christie [Tue, 20 Aug 2019 11:33:28 +0000 (12:33 +0100)]
Test coverage for HTTPVersionConfig
Florimond Manca [Tue, 20 Aug 2019 11:27:58 +0000 (13:27 +0200)]
Turn concurrency.py into its own sub-package (#244)
Tom Christie [Tue, 20 Aug 2019 11:21:07 +0000 (12:21 +0100)]
'Protocols' -> 'HTTPVersions'
Tom Christie [Tue, 20 Aug 2019 11:03:55 +0000 (12:03 +0100)]
Merge branch 'protocol-support' of https://github.com/encode/httpx into protocol-support
Can Sarıgöl [Tue, 20 Aug 2019 10:48:28 +0000 (13:48 +0300)]
fixed __repr__ function of Headers and Url classes (#222)
Tom Christie [Tue, 20 Aug 2019 10:37:37 +0000 (11:37 +0100)]
Simplify ASGI concurrency (#248)
* Drop keyword argument
* Improve docstrings for WSGIDispatch and ASGIDispatch
* Add docs for fine grained WSGI/ASGI control
* Simplify concurrency handling in ASGIDispatch
* Variable renaming
* Fix missing nonlocal declaration
* Split nonlocal onto multiple lines
Tom Christie [Mon, 19 Aug 2019 19:19:40 +0000 (20:19 +0100)]
Use correct protocol idents when loading ssl context
Tom Christie [Mon, 19 Aug 2019 19:13:37 +0000 (20:13 +0100)]
Initial pass at configuring supported protocol versions
Can Sarıgöl [Mon, 19 Aug 2019 15:12:01 +0000 (18:12 +0300)]
added control to calling decode for empty contents (#237)
* added tests for all decoder
* fixed BrotliDecoder for b"" value
Tom Christie [Mon, 19 Aug 2019 15:09:11 +0000 (16:09 +0100)]
Drop `raise_app_exceptions` Client argument. (#238)
* Drop `raise_app_exceptions` keyword argument
* Improve docstrings for WSGIDispatch and ASGIDispatch
* Add docs for fine grained WSGI/ASGI control
Ordanis Sanchez [Sun, 18 Aug 2019 19:44:24 +0000 (15:44 -0400)]
Release semaphore if connection is dropped (#230)
Florimond Manca [Sun, 18 Aug 2019 14:41:37 +0000 (16:41 +0200)]
Enforce that sync client uses asyncio-based backend (#232)
Seth Michael Larson [Sun, 18 Aug 2019 10:19:14 +0000 (05:19 -0500)]
Release 0.7.1 (#234)
Florimond Manca [Sun, 18 Aug 2019 10:06:59 +0000 (12:06 +0200)]
Install package locally in test-requirements.txt (#231)
Seth Michael Larson [Sat, 17 Aug 2019 20:11:30 +0000 (15:11 -0500)]
Release 0.7.0 (#228)
Seth Michael Larson [Sat, 17 Aug 2019 20:03:50 +0000 (15:03 -0500)]
Add CHANGELOG.md for tracking releases (#227)
Seth Michael Larson [Sat, 17 Aug 2019 18:19:08 +0000 (13:19 -0500)]
Skip coverage on breaks right before returns for Python 3.8 (#226)
Can Sarıgöl [Sat, 17 Aug 2019 16:07:04 +0000 (19:07 +0300)]
Documented netrc support (#225)
Can Sarıgöl [Sat, 17 Aug 2019 15:09:49 +0000 (18:09 +0300)]
Add trust_env property to BaseClient (#187)
Saugat Pachhai [Sat, 17 Aug 2019 08:40:34 +0000 (14:25 +0545)]
Use chained comparison in status codes for error and success
Saugat Pachhai [Sat, 17 Aug 2019 08:37:01 +0000 (14:22 +0545)]
Fix typos in docstrings
euri10 [Fri, 16 Aug 2019 14:18:52 +0000 (16:18 +0200)]
Add --diff flag to Black for easier debugging (#219)
euri10 [Fri, 16 Aug 2019 14:07:52 +0000 (16:07 +0200)]
Added links property to BaseResponse (#211)
* Added docstring and better typing for parsed_header_links
* Added docstring and better typing for links property
Added tests for it too
* Added --diff to black check to see where CI fails
Relaxed travis build on master only
* Fixed black issue removing a \t
* Put noxfile and travis.yml as they were before
Seth Michael Larson [Thu, 15 Aug 2019 03:30:02 +0000 (22:30 -0500)]
Accept SSLContext into SSLConfig(verify=...) (#215)
Seth Michael Larson [Thu, 15 Aug 2019 02:56:17 +0000 (21:56 -0500)]
Implement Response.stream_text() (#183)
Can Sarıgöl [Thu, 15 Aug 2019 02:45:28 +0000 (05:45 +0300)]
Fail unit tests without 100% coverage (#206)
Can Sarıgöl [Thu, 15 Aug 2019 02:38:43 +0000 (05:38 +0300)]
Rely on IRIReference.encode() for IDNA encoding (#210)
Humberto Rocha [Thu, 15 Aug 2019 02:37:44 +0000 (23:37 -0300)]
Add additional info to Contributing Guide (#213)
Can Sarıgöl [Thu, 15 Aug 2019 02:30:01 +0000 (05:30 +0300)]
Run SSLConfig cert loading in threadpool (#209)
Tammo Behrends [Wed, 14 Aug 2019 11:22:12 +0000 (13:22 +0200)]
Explicitly check is_redirect in simple test case (#208)
Humberto Rocha [Tue, 13 Aug 2019 21:27:00 +0000 (18:27 -0300)]
Move all tooling configuration to setup.cfg (#204)
Can Sarıgöl [Tue, 13 Aug 2019 14:22:18 +0000 (17:22 +0300)]
Add flake8-comprehensions to nox check task (#200)
* fixed as flake8-comprehensions
* added site folder into gitignore
Seth Michael Larson [Tue, 13 Aug 2019 13:39:35 +0000 (08:39 -0500)]
Use nox for automation and CI (#128)
Yeray Diaz Diaz [Tue, 13 Aug 2019 11:44:23 +0000 (12:44 +0100)]
Remove "Host" header on redirects if URL origin has changed (#199)
Fixes #198
* Reinstate accidentally removed return statement
Quentin Pradet [Fri, 9 Aug 2019 13:10:59 +0000 (17:10 +0400)]
Fix invalid Content-Encoding header test (#197)
Stephen Brown II [Fri, 9 Aug 2019 02:42:26 +0000 (20:42 -0600)]
Use pathlib.Path instead of os.path functions (#188)
Andreas Bernacca [Fri, 9 Aug 2019 02:33:55 +0000 (04:33 +0200)]
Ignore Content-Encoding headers that are invalid (#196)
Humberto Rocha [Tue, 6 Aug 2019 21:52:54 +0000 (18:52 -0300)]
Create a Contributing page in the documentation (#190)
Andrew M. White [Tue, 6 Aug 2019 17:18:34 +0000 (10:18 -0700)]
Enable mypy to discover type hints as specified in PEP 561 (#194)
Can Sarıgöl [Tue, 6 Aug 2019 13:31:04 +0000 (16:31 +0300)]
Check `~/.netrc` and `~/_netrc` files by default (#189)
halbow [Tue, 6 Aug 2019 13:20:48 +0000 (15:20 +0200)]
Added base class HTTPError with request/response attribute (#162)
Seth Michael Larson [Thu, 1 Aug 2019 09:26:45 +0000 (04:26 -0500)]
Move HSTS preload checking to client (#184)
Can Sarıgöl [Thu, 1 Aug 2019 08:32:00 +0000 (11:32 +0300)]
added netrc support (#177)
Seth Michael Larson [Wed, 31 Jul 2019 23:27:10 +0000 (18:27 -0500)]
Convert DataEvent.data from bytearray to bytes (#182)
Stephen Brown II [Wed, 31 Jul 2019 13:41:40 +0000 (08:41 -0500)]
Update IDNA encoding to 2008 spec (#161)
* Update IDNA encoding to 2008 spec
* Add Unicode IDNA Compatibility Processing
* Parametrize idna test
* Use rfc3986 iri_reference for IDNA names
* Add test for IRI object
* Remove test_iri as this interface has been removed
Tom Christie [Tue, 30 Jul 2019 23:27:20 +0000 (00:27 +0100)]
Tweak query param types (#175)
* Tweak query param types
* Handle primitive data types for queryparams
* QueryParam keys as str-only, not PrimitiveData
Seth Michael Larson [Tue, 30 Jul 2019 22:47:44 +0000 (17:47 -0500)]
Expose base classes for alternate backends (#178)
Tom Christie [Tue, 30 Jul 2019 00:46:15 +0000 (01:46 +0100)]
Remove 'URIReference' from public interfaces (#170)
Nik [Mon, 29 Jul 2019 03:16:37 +0000 (06:16 +0300)]
Fixed multipart header params encoding (#167)
Stephen Brown II [Mon, 29 Jul 2019 02:43:06 +0000 (21:43 -0500)]
Make Origin use scheme, not is_ssl (#168)
Stephen Brown II [Mon, 29 Jul 2019 01:39:35 +0000 (20:39 -0500)]
Allow setting headers at the Client level (#159)
Seth Michael Larson [Sun, 28 Jul 2019 17:02:21 +0000 (12:02 -0500)]
Switch hosts on HSTS preload to HTTPS (#151)
Can Sarıgöl [Sun, 28 Jul 2019 16:40:05 +0000 (19:40 +0300)]
Add additional flake8 plugins (#157)
halbow [Sat, 27 Jul 2019 16:32:01 +0000 (18:32 +0200)]
Added support for Google's Brotli library (#156)
* Ignore coverage for brotli decompression
* Updated assert comment for brotli and brotlipy
halbow [Sat, 27 Jul 2019 05:03:12 +0000 (07:03 +0200)]
Removed deprecated TLS versions (#155)
Tom Christie [Thu, 25 Jul 2019 22:01:03 +0000 (23:01 +0100)]
Fix `URL.join(...)` (#144)
Tom Christie [Thu, 25 Jul 2019 21:53:31 +0000 (22:53 +0100)]
Version 0.6.8
Tom Christie [Thu, 25 Jul 2019 21:52:41 +0000 (22:52 +0100)]
Check disconnections on connection reacquiry (#145)
* Detect EOF signaling remote server closed connection
Raise ConnectionClosedByRemote and handle on `send`
* Fix linting
* Use existing NotConnected exception
* Add `Reader.is_connection_dropped` method
* Check connection before sending h11 events as well
* Add test covering connection lost before reading response content
* Check for connection closed on acquiring it from the pool
* Clean up ConnectionPool logic around reaquiry of connections
Stephen Brown II [Wed, 24 Jul 2019 15:28:16 +0000 (10:28 -0500)]
Allow string comparison for URL().__eq__ (#139)
Stephen Brown II [Mon, 22 Jul 2019 20:13:00 +0000 (15:13 -0500)]
Additional HTTP Status Codes 418, 451 (#135)
Tom Christie [Fri, 19 Jul 2019 14:44:17 +0000 (15:44 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:43:04 +0000 (15:43 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:41:18 +0000 (15:41 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:40:32 +0000 (15:40 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:38:53 +0000 (15:38 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:38:08 +0000 (15:38 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:37:25 +0000 (15:37 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:37:02 +0000 (15:37 +0100)]
Update README.md
Tom Christie [Fri, 19 Jul 2019 14:36:36 +0000 (15:36 +0100)]
Branding updates for httpx (#130)
Tom Christie [Fri, 19 Jul 2019 14:20:15 +0000 (15:20 +0100)]
Rename -> httpx
Tom Christie [Fri, 19 Jul 2019 14:15:16 +0000 (15:15 +0100)]
Renaming -> httpx (#129)
* Renaming -> httpx
* Renaming to httpx
ambrozic [Thu, 18 Jul 2019 11:00:02 +0000 (12:00 +0100)]
Multipart data values encoding (#121)
* multipart data values encoding (#119)
* Update test_multipart.py
Seth Michael Larson [Thu, 18 Jul 2019 10:41:50 +0000 (05:41 -0500)]
Start using flake8, fix lint issues (#126)
Seth Michael Larson [Tue, 16 Jul 2019 09:08:57 +0000 (04:08 -0500)]
Support client cert passwords, new TLS options (#118)
* Support client cert passwords, new TLS options
* Update test_config.py
* Switch to try-except for post_handshake_auth=True
SSLContext.post_handshake_auth raises AttributeError if the property is available but cannot be written to (needs OpenSSL 1.1.1+)
* Also try-except for hostname_checks_common_name=False
* Custom implementation of trustme.CA() that emits encrypted PKs
* lint
* Split name of test
* Updates from review comments
* Don't load default CAs yet
Yeray Diaz Diaz [Thu, 11 Jul 2019 16:14:58 +0000 (17:14 +0100)]
Encoding detection in Response.json (#116)
* Use response text on `json`
Pass kwargs to the loads call
* Add failing test demonstrating corner case
* Copy `guess_json_utf` function from requests
* "Fix" type hinting and lint
* Actually add tests_utils.py
Tom Christie [Mon, 8 Jul 2019 14:58:44 +0000 (15:58 +0100)]
Version 0.6.7
Tom Christie [Mon, 8 Jul 2019 14:57:29 +0000 (15:57 +0100)]
Check for connection aliveness on pool re-acquiry (#111)
* Check for connection aliveness on pool re-acquiry
* Test for connection re-acquiry with HTTP/2
* nocover on HTTP/1.1 ConnectionResetError, since we're testing the equivelent on HTTP/2
* Fix setup.py to read version from __version__
Tom Christie [Wed, 3 Jul 2019 09:33:38 +0000 (10:33 +0100)]
Minor tweaks in line with requests behavior (#110)
Tom Christie [Thu, 27 Jun 2019 15:46:58 +0000 (16:46 +0100)]
Version 0.6.5
Tom Christie [Thu, 27 Jun 2019 15:46:13 +0000 (16:46 +0100)]
Include host header directly (#109)
* Improve HTTP protocol detection
* Include host header when request is instantiated
* Add raise_app_exceptions
* Tweaks to ASGI dispatching
* Linting
* Don't quote multipart values
* Tweak decoder ordering in header
* Allow str data in request bodys
Tom Christie [Tue, 25 Jun 2019 16:13:16 +0000 (17:13 +0100)]
Improve HTTP protocol detection (#107)
Tom Christie [Tue, 25 Jun 2019 12:24:12 +0000 (13:24 +0100)]
Version 0.6.4 (#105)
* Read/Write timeout modes
* Read/Write timeout modes
* Tweaks for read/write timeout modes
* Version 0.6.4
* Make slow_response slower for timeout test
Tom Christie [Tue, 25 Jun 2019 11:54:14 +0000 (12:54 +0100)]
Read/Write timeout modes (#104)
* Read/Write timeout modes
* Read/Write timeout modes
Tom Christie [Mon, 24 Jun 2019 15:54:24 +0000 (16:54 +0100)]
Version 0.6.3
Tom Christie [Mon, 24 Jun 2019 15:53:42 +0000 (16:53 +0100)]
Handle early connection closes (#103)
* Refactoring h11 implementation
* More h11 refactoring
* Support early connection closes on H11 connections
* Tweak comment
* Refactor concurrent read/writes
* Drop WriteTimeout masking
* Linting
* Use concurrent read/writes for HTTP2
* Push background sending into ConcurrencyBackend
updatatoday [Sun, 23 Jun 2019 10:37:00 +0000 (13:37 +0300)]
Fixed response repr. (#101)
* Fixed response repr.
* Fixed response repr tests.
Tom Christie [Sun, 23 Jun 2019 10:24:17 +0000 (11:24 +0100)]
Use urllib3's DEFAULT_CIPHERS for ssl config (#100)
Tom Christie [Fri, 21 Jun 2019 15:44:40 +0000 (16:44 +0100)]
Version 0.6.1
Tom Christie [Fri, 21 Jun 2019 14:03:01 +0000 (15:03 +0100)]
Support Client(base_url=...)
Tom Christie [Fri, 21 Jun 2019 12:50:19 +0000 (13:50 +0100)]
Version 0.6.0
Tom Christie [Fri, 21 Jun 2019 12:49:25 +0000 (13:49 +0100)]
Honour 'local_flow_control_window' (#98)
Tom Christie [Tue, 18 Jun 2019 15:02:18 +0000 (16:02 +0100)]
Tweak README
Tom Christie [Tue, 18 Jun 2019 14:54:41 +0000 (15:54 +0100)]
Version 0.5.0
Tom Christie [Tue, 18 Jun 2019 14:53:33 +0000 (15:53 +0100)]
Support WSGI and ASGI apps. (#94)
* Add 'Client(app=...)' support
* Add ASGI support with Client(app=app)
* Improve exc cases when using client with ASGI
* Tighten up exception handling when using as a test client
* Fix up stream I/O for WSGI/ASGI apps
* Docs for WSGI/ASGI integration
Tom Christie [Mon, 17 Jun 2019 16:28:27 +0000 (17:28 +0100)]
Tweak compat docs