]> git.ipfire.org Git - thirdparty/httpx.git/log
thirdparty/httpx.git
6 years agoApply black formatting 310/head
Tom Christie [Wed, 4 Sep 2019 14:11:40 +0000 (15:11 +0100)] 
Apply black formatting

6 years agoStrip Transfer-Encoding when a switch-to-GET redirect is made
Tom Christie [Wed, 4 Sep 2019 14:10:55 +0000 (15:10 +0100)] 
Strip Transfer-Encoding when a switch-to-GET redirect is made

6 years agoMerge branch 'drop-content-length-on-get-redirects' of https://github.com/encode...
Tom Christie [Wed, 4 Sep 2019 14:06:25 +0000 (15:06 +0100)] 
Merge branch 'drop-content-length-on-get-redirects' of https://github.com/encode/httpx into drop-content-length-on-get-redirects

6 years agoAdd tests for dropping Content-Length headers
Tom Christie [Wed, 4 Sep 2019 14:06:14 +0000 (15:06 +0100)] 
Add tests for dropping Content-Length headers

6 years agoRemove example script
florimondmanca [Tue, 3 Sep 2019 17:22:03 +0000 (19:22 +0200)] 
Remove example script

6 years agoWhite whitespacing
Tom Christie [Tue, 3 Sep 2019 14:02:40 +0000 (15:02 +0100)] 
White whitespacing

6 years agoApply black formatting (Tho it looks like a broken case to me?)
Tom Christie [Tue, 3 Sep 2019 14:01:37 +0000 (15:01 +0100)] 
Apply black formatting (Tho it looks like a broken case to me?)

6 years agoDrop Content-Length headers on GET redirects
Tom Christie [Tue, 3 Sep 2019 13:36:03 +0000 (14:36 +0100)] 
Drop Content-Length headers on GET redirects

6 years agoAdd os.environ fixture (#308)
Seth Michael Larson [Mon, 2 Sep 2019 21:12:52 +0000 (16:12 -0500)] 
Add os.environ fixture (#308)

6 years agoRefactor client functionality into middleware (#268)
Florimond Manca [Sun, 1 Sep 2019 21:01:14 +0000 (23:01 +0200)] 
Refactor client functionality into middleware (#268)

Co-authored-by: yeraydiazdiaz <yeraydiazdiaz@gmail.com>
* Dispatcher middlewares

* Redirect and BasicAuth dispatchers
* Remove HTTPBasicAuth and reinstate trust_env logic
* Call resolve dispatcher correctly
* Fix redirection tests
* Add basic and custom auth dispatchers
* Reinstate extracting cookies from response
* Fix linting

* Refactor middleware interface

6 years agoAdd support for SSLKEYLOGFILE (#301)
Tomás Farías [Sun, 1 Sep 2019 13:01:11 +0000 (10:01 -0300)] 
Add support for SSLKEYLOGFILE (#301)

* Skip test if OpenSSL version is lower than 1.1.1

* Use bionic dist for Python 3.8 job

* Pass trust_env to SSLConfig use monkeypatch in testing

* Don't raise KeyError if SSLKEYLOGFILE is not set

* Move trust_env after verify and cert

6 years agoAdd server.url property in tests (#300)
Bakhtiyor Ruziev [Sun, 1 Sep 2019 07:07:22 +0000 (10:07 +0300)] 
Add server.url property in tests (#300)

* Add server.url to test server

* Move a property to top of the class

6 years agoTighten up response.next() (#297)
Florimond Manca [Sat, 31 Aug 2019 14:09:35 +0000 (16:09 +0200)] 
Tighten up response.next() (#297)

6 years agoServe test server in thread (#292)
Florimond Manca [Thu, 29 Aug 2019 21:17:14 +0000 (23:17 +0200)] 
Serve test server in thread (#292)

6 years agoFix typos in comments (#294)
Min ho Kim [Thu, 29 Aug 2019 17:14:15 +0000 (03:14 +1000)] 
Fix typos in comments (#294)

6 years agoRelease 0.7.2 (#291) 0.7.2
Seth Michael Larson [Thu, 29 Aug 2019 12:19:02 +0000 (07:19 -0500)] 
Release 0.7.2 (#291)

6 years agoAutomatically convert Client.cookies and Client.headers on set (#274)
toppk [Wed, 28 Aug 2019 00:25:30 +0000 (20:25 -0400)] 
Automatically convert Client.cookies and Client.headers on set (#274)

6 years agoAllow per file running of tests (#287)
Jt Miclat [Tue, 27 Aug 2019 16:51:36 +0000 (00:51 +0800)] 
Allow per file running of tests (#287)

* Allow per file running of tests

* Simply PR

6 years agoAdd easier debug logging for users (#277)
Seth Michael Larson [Tue, 27 Aug 2019 16:43:13 +0000 (11:43 -0500)] 
Add easier debug logging for users (#277)

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
6 years agoStop running nox on first error (#286)
Jt Miclat [Tue, 27 Aug 2019 16:08:50 +0000 (00:08 +0800)] 
Stop running nox on first error (#286)

6 years agoForce HTTP/1.1 on short-lived connections (#284)
Seth Michael Larson [Tue, 27 Aug 2019 12:54:11 +0000 (07:54 -0500)] 
Force HTTP/1.1 on short-lived connections (#284)

6 years agoAdd tests to known first parties in isort config (#279)
Florimond Manca [Mon, 26 Aug 2019 20:16:51 +0000 (22:16 +0200)] 
Add tests to known first parties in isort config (#279)

6 years agoParametrize tests with concurrency backend (#273)
Florimond Manca [Sun, 25 Aug 2019 18:25:18 +0000 (20:25 +0200)] 
Parametrize tests with concurrency backend (#273)

* Parametrize tests with concurrency backend

* Refactor server restart

* Add no-backend test

6 years agoAdd ConcurrencyBackend.start_tls() (#263)
Seth Michael Larson [Sat, 24 Aug 2019 15:04:14 +0000 (10:04 -0500)] 
Add ConcurrencyBackend.start_tls() (#263)

6 years agoAdd missing async test cases (#269)
Florimond Manca [Fri, 23 Aug 2019 12:04:21 +0000 (14:04 +0200)] 
Add missing async test cases (#269)

6 years agoRely on codecov for 100% project coverage (#264)
Seth Michael Larson [Fri, 23 Aug 2019 12:00:13 +0000 (07:00 -0500)] 
Rely on codecov for 100% project coverage (#264)

6 years agoAdd backend param to ASGIDispatcher (#270)
Florimond Manca [Fri, 23 Aug 2019 00:26:09 +0000 (02:26 +0200)] 
Add backend param to ASGIDispatcher (#270)

6 years agoTravis sudo no longer required for Xenial (#266)
Hugo van Kemenade [Thu, 22 Aug 2019 15:30:02 +0000 (18:30 +0300)] 
Travis sudo no longer required for Xenial (#266)

6 years agoRemove usage of loop.create_task in ASGIDispatch (#261)
Florimond Manca [Wed, 21 Aug 2019 21:11:12 +0000 (23:11 +0200)] 
Remove usage of loop.create_task in ASGIDispatch (#261)

* Remove usage of loop.create_task in ASGIDispatch

* Add comment about usage of background manager

* Update comment

6 years agoMerge pull request #255 from encode/refactor/stream-interface
Tom Christie [Wed, 21 Aug 2019 08:38:39 +0000 (09:38 +0100)] 
Merge pull request #255 from encode/refactor/stream-interface

Unify BaseReader and BaseWriter as BaseStream

6 years agoEncapsulate http_version into BaseStream 255/head
florimondmanca [Wed, 21 Aug 2019 07:12:01 +0000 (09:12 +0200)] 
Encapsulate http_version into BaseStream

6 years agoUnify BaseReader and BaseWriter as BaseStream
florimondmanca [Tue, 20 Aug 2019 20:53:47 +0000 (22:53 +0200)] 
Unify BaseReader and BaseWriter as BaseStream

6 years agoAdd BaseEvent interface (#260)
Florimond Manca [Wed, 21 Aug 2019 07:02:04 +0000 (09:02 +0200)] 
Add BaseEvent interface (#260)

6 years agoRefactor interfaces (#252)
Tom Christie [Wed, 21 Aug 2019 06:35:01 +0000 (07:35 +0100)] 
Refactor interfaces (#252)

* Move Dispatcher, AsyncDispatcher into dispatch/base.py

* Move concurrency interfaces into concurrency/base.py

6 years agoRaise TypeError if invalid parameter for HTTPVersionConfig (#253)
Can Sarıgöl [Tue, 20 Aug 2019 22:39:05 +0000 (01:39 +0300)] 
Raise TypeError if invalid parameter for HTTPVersionConfig (#253)

6 years agoAdd BaseQueue interface (#257)
Florimond Manca [Tue, 20 Aug 2019 22:25:46 +0000 (00:25 +0200)] 
Add BaseQueue interface (#257)

6 years agoMerge pull request #241 from encode/protocol-support
Tom Christie [Tue, 20 Aug 2019 14:16:28 +0000 (15:16 +0100)] 
Merge pull request #241 from encode/protocol-support

Allow configuration of supported HTTP protocol versions.

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

* Drop Protocol str enum class in favor of plain old strings

* Drop unused import

6 years agoResponse.protocol -> Response.http_version (#250)
Tom Christie [Tue, 20 Aug 2019 14:15:38 +0000 (15:15 +0100)] 
Response.protocol -> Response.http_version (#250)

* Response.protocol -> Response.http_version

* Update docs

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 agoAddress review comments 241/head
Tom Christie [Tue, 20 Aug 2019 13:26:43 +0000 (14:26 +0100)] 
Address review comments

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 agoAdd Client(http_versions=...) support
Tom Christie [Tue, 20 Aug 2019 12:30:54 +0000 (13:30 +0100)] 
Add Client(http_versions=...) support

6 years agoMerge branch 'master' into protocol-support
Tom Christie [Tue, 20 Aug 2019 12:08:24 +0000 (13:08 +0100)] 
Merge branch 'master' into protocol-support

6 years agoDrop unneccessary 'sorted'
Tom Christie [Tue, 20 Aug 2019 11:58:03 +0000 (12:58 +0100)] 
Drop unneccessary 'sorted'

6 years agoAdded http_versions to dispatch interface
Tom Christie [Tue, 20 Aug 2019 11:56:19 +0000 (12:56 +0100)] 
Added http_versions to dispatch interface

6 years agoTest coverage for HTTPVersionConfig
Tom Christie [Tue, 20 Aug 2019 11:33:28 +0000 (12:33 +0100)] 
Test coverage for HTTPVersionConfig

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 ago'Protocols' -> 'HTTPVersions'
Tom Christie [Tue, 20 Aug 2019 11:21:07 +0000 (12:21 +0100)] 
'Protocols' -> 'HTTPVersions'

6 years agoMerge branch 'protocol-support' of https://github.com/encode/httpx into protocol...
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

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 agoUse correct protocol idents when loading ssl context
Tom Christie [Mon, 19 Aug 2019 19:19:40 +0000 (20:19 +0100)] 
Use correct protocol idents when loading ssl context

6 years agoInitial pass at configuring supported protocol versions
Tom Christie [Mon, 19 Aug 2019 19:13:37 +0000 (20:13 +0100)] 
Initial pass at configuring supported protocol versions

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