]> git.ipfire.org Git - thirdparty/httpx.git/log
thirdparty/httpx.git
6 years agoDrop unused import 251/head
Tom Christie [Tue, 20 Aug 2019 13:30:23 +0000 (14:30 +0100)] 
Drop unused import

6 years agoDrop Protocol str enum class in favor of plain old strings
Tom Christie [Tue, 20 Aug 2019 13:17:26 +0000 (14:17 +0100)] 
Drop Protocol str enum class in favor of plain old strings

6 years agoTurn concurrency.py into its own sub-package (#244)
Florimond Manca [Tue, 20 Aug 2019 11:27:58 +0000 (13:27 +0200)] 
Turn concurrency.py into its own sub-package (#244)

6 years agofixed __repr__ function of Headers and Url classes (#222)
Can Sarıgöl [Tue, 20 Aug 2019 10:48:28 +0000 (13:48 +0300)] 
fixed __repr__ function of Headers and Url classes (#222)

6 years agoSimplify ASGI concurrency (#248)
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

6 years agoadded control to calling decode for empty contents (#237)
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

6 years agoDrop `raise_app_exceptions` Client argument. (#238)
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

6 years agoRelease semaphore if connection is dropped (#230)
Ordanis Sanchez [Sun, 18 Aug 2019 19:44:24 +0000 (15:44 -0400)] 
Release semaphore if connection is dropped (#230)

6 years agoEnforce that sync client uses asyncio-based backend (#232)
Florimond Manca [Sun, 18 Aug 2019 14:41:37 +0000 (16:41 +0200)] 
Enforce that sync client uses asyncio-based backend (#232)

6 years agoRelease 0.7.1 (#234) 0.7.1
Seth Michael Larson [Sun, 18 Aug 2019 10:19:14 +0000 (05:19 -0500)] 
Release 0.7.1 (#234)

6 years agoInstall package locally in test-requirements.txt (#231)
Florimond Manca [Sun, 18 Aug 2019 10:06:59 +0000 (12:06 +0200)] 
Install package locally in test-requirements.txt (#231)

6 years agoRelease 0.7.0 (#228) 0.7.0
Seth Michael Larson [Sat, 17 Aug 2019 20:11:30 +0000 (15:11 -0500)] 
Release 0.7.0 (#228)

6 years agoAdd CHANGELOG.md for tracking releases (#227)
Seth Michael Larson [Sat, 17 Aug 2019 20:03:50 +0000 (15:03 -0500)] 
Add CHANGELOG.md for tracking releases (#227)

6 years agoSkip coverage on breaks right before returns for Python 3.8 (#226)
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)

6 years agoDocumented netrc support (#225)
Can Sarıgöl [Sat, 17 Aug 2019 16:07:04 +0000 (19:07 +0300)] 
Documented netrc support (#225)

6 years agoAdd trust_env property to BaseClient (#187)
Can Sarıgöl [Sat, 17 Aug 2019 15:09:49 +0000 (18:09 +0300)] 
Add trust_env property to BaseClient (#187)

6 years agoUse chained comparison in status codes for error and success
Saugat Pachhai [Sat, 17 Aug 2019 08:40:34 +0000 (14:25 +0545)] 
Use chained comparison in status codes for error and success

6 years agoFix typos in docstrings
Saugat Pachhai [Sat, 17 Aug 2019 08:37:01 +0000 (14:22 +0545)] 
Fix typos in docstrings

6 years agoAdd --diff flag to Black for easier debugging (#219)
euri10 [Fri, 16 Aug 2019 14:18:52 +0000 (16:18 +0200)] 
Add --diff flag to Black for easier debugging (#219)

6 years agoAdded links property to BaseResponse (#211)
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

6 years agoAccept SSLContext into SSLConfig(verify=...) (#215)
Seth Michael Larson [Thu, 15 Aug 2019 03:30:02 +0000 (22:30 -0500)] 
Accept SSLContext into SSLConfig(verify=...) (#215)

6 years agoImplement Response.stream_text() (#183)
Seth Michael Larson [Thu, 15 Aug 2019 02:56:17 +0000 (21:56 -0500)] 
Implement Response.stream_text() (#183)

6 years agoFail unit tests without 100% coverage (#206)
Can Sarıgöl [Thu, 15 Aug 2019 02:45:28 +0000 (05:45 +0300)] 
Fail unit tests without 100% coverage (#206)

6 years agoRely on IRIReference.encode() for IDNA encoding (#210)
Can Sarıgöl [Thu, 15 Aug 2019 02:38:43 +0000 (05:38 +0300)] 
Rely on IRIReference.encode() for IDNA encoding (#210)

6 years agoAdd additional info to Contributing Guide (#213)
Humberto Rocha [Thu, 15 Aug 2019 02:37:44 +0000 (23:37 -0300)] 
Add additional info to Contributing Guide (#213)

6 years agoRun SSLConfig cert loading in threadpool (#209)
Can Sarıgöl [Thu, 15 Aug 2019 02:30:01 +0000 (05:30 +0300)] 
Run SSLConfig cert loading in threadpool (#209)

6 years agoExplicitly check is_redirect in simple test case (#208)
Tammo Behrends [Wed, 14 Aug 2019 11:22:12 +0000 (13:22 +0200)] 
Explicitly check is_redirect in simple test case (#208)

6 years agoMove all tooling configuration to setup.cfg (#204)
Humberto Rocha [Tue, 13 Aug 2019 21:27:00 +0000 (18:27 -0300)] 
Move all tooling configuration to setup.cfg (#204)

6 years agoAdd flake8-comprehensions to nox check task (#200)
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

6 years agoUse nox for automation and CI (#128)
Seth Michael Larson [Tue, 13 Aug 2019 13:39:35 +0000 (08:39 -0500)] 
Use nox for automation and CI (#128)

6 years agoRemove "Host" header on redirects if URL origin has changed (#199)
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

6 years agoFix invalid Content-Encoding header test (#197)
Quentin Pradet [Fri, 9 Aug 2019 13:10:59 +0000 (17:10 +0400)] 
Fix invalid Content-Encoding header test (#197)

6 years agoUse pathlib.Path instead of os.path functions (#188)
Stephen Brown II [Fri, 9 Aug 2019 02:42:26 +0000 (20:42 -0600)] 
Use pathlib.Path instead of os.path functions (#188)

6 years agoIgnore Content-Encoding headers that are invalid (#196)
Andreas Bernacca [Fri, 9 Aug 2019 02:33:55 +0000 (04:33 +0200)] 
Ignore Content-Encoding headers that are invalid (#196)

6 years agoCreate a Contributing page in the documentation (#190)
Humberto Rocha [Tue, 6 Aug 2019 21:52:54 +0000 (18:52 -0300)] 
Create a Contributing page in the documentation (#190)

6 years agoEnable mypy to discover type hints as specified in PEP 561 (#194)
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)

6 years agoCheck `~/.netrc` and `~/_netrc` files by default (#189)
Can Sarıgöl [Tue, 6 Aug 2019 13:31:04 +0000 (16:31 +0300)] 
Check `~/.netrc` and `~/_netrc` files by default (#189)

6 years agoAdded base class HTTPError with request/response attribute (#162)
halbow [Tue, 6 Aug 2019 13:20:48 +0000 (15:20 +0200)] 
Added base class HTTPError with request/response attribute (#162)

6 years agoMove HSTS preload checking to client (#184)
Seth Michael Larson [Thu, 1 Aug 2019 09:26:45 +0000 (04:26 -0500)] 
Move HSTS preload checking to client (#184)

6 years agoadded netrc support (#177)
Can Sarıgöl [Thu, 1 Aug 2019 08:32:00 +0000 (11:32 +0300)] 
added netrc support (#177)

6 years agoConvert DataEvent.data from bytearray to bytes (#182)
Seth Michael Larson [Wed, 31 Jul 2019 23:27:10 +0000 (18:27 -0500)] 
Convert DataEvent.data from bytearray to bytes (#182)

6 years agoUpdate IDNA encoding to 2008 spec (#161)
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

6 years agoTweak query param types (#175)
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

6 years agoExpose base classes for alternate backends (#178)
Seth Michael Larson [Tue, 30 Jul 2019 22:47:44 +0000 (17:47 -0500)] 
Expose base classes for alternate backends (#178)

6 years agoRemove 'URIReference' from public interfaces (#170)
Tom Christie [Tue, 30 Jul 2019 00:46:15 +0000 (01:46 +0100)] 
Remove 'URIReference' from public interfaces (#170)

6 years agoFixed multipart header params encoding (#167)
Nik [Mon, 29 Jul 2019 03:16:37 +0000 (06:16 +0300)] 
Fixed multipart header params encoding (#167)

6 years agoMake Origin use scheme, not is_ssl (#168)
Stephen Brown II [Mon, 29 Jul 2019 02:43:06 +0000 (21:43 -0500)] 
Make Origin use scheme, not is_ssl (#168)

6 years agoAllow setting headers at the Client level (#159)
Stephen Brown II [Mon, 29 Jul 2019 01:39:35 +0000 (20:39 -0500)] 
Allow setting headers at the Client level (#159)

6 years agoSwitch hosts on HSTS preload to HTTPS (#151)
Seth Michael Larson [Sun, 28 Jul 2019 17:02:21 +0000 (12:02 -0500)] 
Switch hosts on HSTS preload to HTTPS (#151)

6 years agoAdd additional flake8 plugins (#157)
Can Sarıgöl [Sun, 28 Jul 2019 16:40:05 +0000 (19:40 +0300)] 
Add additional flake8 plugins (#157)

6 years agoAdded support for Google's Brotli library (#156)
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

6 years agoRemoved deprecated TLS versions (#155)
halbow [Sat, 27 Jul 2019 05:03:12 +0000 (07:03 +0200)] 
Removed deprecated TLS versions (#155)

6 years agoFix `URL.join(...)` (#144)
Tom Christie [Thu, 25 Jul 2019 22:01:03 +0000 (23:01 +0100)] 
Fix `URL.join(...)` (#144)

6 years agoVersion 0.6.8 0.6.8
Tom Christie [Thu, 25 Jul 2019 21:53:31 +0000 (22:53 +0100)] 
Version 0.6.8

6 years agoCheck disconnections on connection reacquiry (#145)
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

6 years agoAllow string comparison for URL().__eq__ (#139)
Stephen Brown II [Wed, 24 Jul 2019 15:28:16 +0000 (10:28 -0500)] 
Allow string comparison for URL().__eq__ (#139)

6 years agoAdditional HTTP Status Codes 418, 451 (#135)
Stephen Brown II [Mon, 22 Jul 2019 20:13:00 +0000 (15:13 -0500)] 
Additional HTTP Status Codes 418, 451 (#135)

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:44:17 +0000 (15:44 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:43:04 +0000 (15:43 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:41:18 +0000 (15:41 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:40:32 +0000 (15:40 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:38:53 +0000 (15:38 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:38:08 +0000 (15:38 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:37:25 +0000 (15:37 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Fri, 19 Jul 2019 14:37:02 +0000 (15:37 +0100)] 
Update README.md

6 years agoBranding updates for httpx (#130)
Tom Christie [Fri, 19 Jul 2019 14:36:36 +0000 (15:36 +0100)] 
Branding updates for httpx (#130)

6 years agoRename -> httpx
Tom Christie [Fri, 19 Jul 2019 14:20:15 +0000 (15:20 +0100)] 
Rename -> httpx

6 years agoRenaming -> httpx (#129)
Tom Christie [Fri, 19 Jul 2019 14:15:16 +0000 (15:15 +0100)] 
Renaming -> httpx (#129)

* Renaming -> httpx

* Renaming to httpx

6 years agoMultipart data values encoding (#121)
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

6 years agoStart using flake8, fix lint issues (#126)
Seth Michael Larson [Thu, 18 Jul 2019 10:41:50 +0000 (05:41 -0500)] 
Start using flake8, fix lint issues (#126)

6 years agoSupport client cert passwords, new TLS options (#118)
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

6 years agoEncoding detection in Response.json (#116)
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

6 years agoVersion 0.6.7 0.6.7
Tom Christie [Mon, 8 Jul 2019 14:58:44 +0000 (15:58 +0100)] 
Version 0.6.7

6 years agoCheck for connection aliveness on pool re-acquiry (#111)
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__

6 years agoMinor tweaks in line with requests behavior (#110) 0.6.6
Tom Christie [Wed, 3 Jul 2019 09:33:38 +0000 (10:33 +0100)] 
Minor tweaks in line with requests behavior (#110)

6 years agoVersion 0.6.5 0.6.5
Tom Christie [Thu, 27 Jun 2019 15:46:58 +0000 (16:46 +0100)] 
Version 0.6.5

6 years agoInclude host header directly (#109)
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

6 years agoImprove HTTP protocol detection (#107)
Tom Christie [Tue, 25 Jun 2019 16:13:16 +0000 (17:13 +0100)] 
Improve HTTP protocol detection (#107)

6 years agoVersion 0.6.4 (#105) 0.6.4
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

6 years agoRead/Write timeout modes (#104)
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

6 years agoVersion 0.6.3 0.6.3
Tom Christie [Mon, 24 Jun 2019 15:54:24 +0000 (16:54 +0100)] 
Version 0.6.3

6 years agoHandle early connection closes (#103)
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

6 years agoFixed response repr. (#101)
updatatoday [Sun, 23 Jun 2019 10:37:00 +0000 (13:37 +0300)] 
Fixed response repr. (#101)

* Fixed response repr.

* Fixed response repr tests.

6 years agoUse urllib3's DEFAULT_CIPHERS for ssl config (#100) 0.6.2
Tom Christie [Sun, 23 Jun 2019 10:24:17 +0000 (11:24 +0100)] 
Use urllib3's DEFAULT_CIPHERS for ssl config (#100)

6 years agoVersion 0.6.1 99/head 0.6.1
Tom Christie [Fri, 21 Jun 2019 15:44:40 +0000 (16:44 +0100)] 
Version 0.6.1

6 years agoSupport Client(base_url=...)
Tom Christie [Fri, 21 Jun 2019 14:03:01 +0000 (15:03 +0100)] 
Support Client(base_url=...)

6 years agoVersion 0.6.0 0.6.0
Tom Christie [Fri, 21 Jun 2019 12:50:19 +0000 (13:50 +0100)] 
Version 0.6.0

6 years agoHonour 'local_flow_control_window' (#98)
Tom Christie [Fri, 21 Jun 2019 12:49:25 +0000 (13:49 +0100)] 
Honour 'local_flow_control_window' (#98)

6 years agoTweak README
Tom Christie [Tue, 18 Jun 2019 15:02:18 +0000 (16:02 +0100)] 
Tweak README

6 years agoVersion 0.5.0 0.5.0
Tom Christie [Tue, 18 Jun 2019 14:54:41 +0000 (15:54 +0100)] 
Version 0.5.0

6 years agoSupport WSGI and ASGI apps. (#94)
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

6 years agoTweak compat docs
Tom Christie [Mon, 17 Jun 2019 16:28:27 +0000 (17:28 +0100)] 
Tweak compat docs

6 years agoVersion 0.1.1
Tom Christie [Mon, 17 Jun 2019 15:55:24 +0000 (16:55 +0100)] 
Version 0.1.1

6 years agoInt status codes (#92)
Tom Christie [Mon, 17 Jun 2019 15:53:39 +0000 (16:53 +0100)] 
Int status codes (#92)

* Use plain int for response.status_code

* Linting

6 years agoVersion 0.1
Tom Christie [Mon, 17 Jun 2019 13:52:44 +0000 (14:52 +0100)] 
Version 0.1

6 years agoAdd multipart docs
Tom Christie [Mon, 17 Jun 2019 13:51:40 +0000 (14:51 +0100)] 
Add multipart docs

6 years agoMultipart support (#90)
Tom Christie [Mon, 17 Jun 2019 13:38:24 +0000 (14:38 +0100)] 
Multipart support (#90)

* Multipart support

* Test compat with 3.6

6 years agoTweaks (#89)
Tom Christie [Thu, 13 Jun 2019 15:19:39 +0000 (16:19 +0100)] 
Tweaks (#89)

* Close redirect responses

* History should not be reverse-order

* History should not be reverse-order

* Docs updates

6 years agoClose redirect responses (#88)
Tom Christie [Thu, 13 Jun 2019 13:38:56 +0000 (14:38 +0100)] 
Close redirect responses (#88)

6 years agoAdd Cookies docs
Tom Christie [Thu, 13 Jun 2019 13:03:22 +0000 (14:03 +0100)] 
Add Cookies docs