]> git.ipfire.org Git - thirdparty/httpx.git/log
thirdparty/httpx.git
6 years agoAdd documentation for requests.Session compatibility (#449) 455/head 459/head
Jt Miclat [Sun, 6 Oct 2019 00:20:18 +0000 (08:20 +0800)] 
Add documentation for requests.Session compatibility (#449)

6 years agoDon't check trio import in definition of backend fixture params (#447)
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)

6 years agoRemove wheels package from test-requirements.txt (#448)
Josep Cugat [Sat, 5 Oct 2019 13:26:34 +0000 (15:26 +0200)] 
Remove wheels package from test-requirements.txt (#448)

6 years agoFix flaky Response.elapsed tests (#446)
Florimond Manca [Fri, 4 Oct 2019 20:36:06 +0000 (22:36 +0200)] 
Fix flaky Response.elapsed tests (#446)

6 years agoEnsure py.typed makes it into source distributions. (#441)
Andrew M. White [Fri, 4 Oct 2019 19:46:58 +0000 (12:46 -0700)] 
Ensure py.typed makes it into source distributions. (#441)

6 years agoDon't include username/password components in `Host` header (#417)
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

6 years agoadded authority copy feature in URL.copy_with (#436)
Can Sarıgöl [Fri, 4 Oct 2019 08:17:25 +0000 (11:17 +0300)] 
added authority copy feature in URL.copy_with (#436)

6 years agoFix link to parallel page from async page (#440)
nwalsh1995 [Fri, 4 Oct 2019 01:08:27 +0000 (18:08 -0700)] 
Fix link to parallel page from async page (#440)

6 years agoDocument the files parameter on .post(), .patch(), and .put() (#409) (#414)
Davit Tovmasyan [Fri, 4 Oct 2019 00:47:19 +0000 (04:47 +0400)] 
Document the files parameter on .post(), .patch(), and .put() (#409) (#414)

6 years agoDocument compatibility difference for get, delete, head, and options (#418)
Jt Miclat [Fri, 4 Oct 2019 00:46:24 +0000 (08:46 +0800)] 
Document compatibility difference for get, delete, head, and options (#418)

6 years agoBuild and upload universal wheels to PyPI (#439)
Josep Cugat [Thu, 3 Oct 2019 21:35:38 +0000 (23:35 +0200)] 
Build and upload universal wheels to PyPI (#439)

6 years agoRevert "Use Python 3.8 asyncio.Stream where possible (#369)" (#423)
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.

6 years agoFix typos, spelling issues, and grammar in docs (#426)
Kyle Galbraith [Wed, 2 Oct 2019 16:46:54 +0000 (09:46 -0700)] 
Fix typos, spelling issues, and grammar in docs (#426)

6 years agoPython 3.8-dev builds on Travis (#425)
Seth Michael Larson [Wed, 2 Oct 2019 15:34:00 +0000 (10:34 -0500)] 
Python 3.8-dev builds on Travis (#425)

6 years agoMake HTTPError importable from the top-level (#421)
Josep Cugat [Tue, 1 Oct 2019 18:37:05 +0000 (20:37 +0200)] 
Make HTTPError importable from the top-level (#421)

6 years agoAdd flake8-pie plugin (#419)
Stephen Brown II [Tue, 1 Oct 2019 17:02:29 +0000 (11:02 -0600)] 
Add flake8-pie plugin (#419)

6 years agoAdd AsyncIO and Trio trove classifiers (#416)
Quentin Pradet [Tue, 1 Oct 2019 07:30:20 +0000 (11:30 +0400)] 
Add AsyncIO and Trio trove classifiers (#416)

6 years agoFix broken docs (#415)
Dustin Ingram [Mon, 30 Sep 2019 19:19:53 +0000 (14:19 -0500)] 
Fix broken docs (#415)

* Fix broken link to parallel request page

* Fix incomplete code block on quickstart page

6 years agoGet test suite back to ~100% line coverage (#406)
Seth Michael Larson [Sun, 29 Sep 2019 18:58:22 +0000 (13:58 -0500)] 
Get test suite back to ~100% line coverage (#406)

6 years agoExpose ASGIDispatch & WSGIDispatch in the 'dispatch' namespace. (#407)
Ahmed Maher [Sat, 28 Sep 2019 19:55:19 +0000 (22:55 +0300)] 
Expose ASGIDispatch & WSGIDispatch in the 'dispatch' namespace. (#407)

6 years agoFix wrongly deleted params introduced #408 (#410)
Jt Miclat [Sat, 28 Sep 2019 17:47:26 +0000 (01:47 +0800)] 
Fix wrongly deleted params introduced #408 (#410)

6 years agoUse Python 3.8 asyncio.Stream where possible (#369)
Jamie Hewland [Sat, 28 Sep 2019 17:23:14 +0000 (19:23 +0200)] 
Use Python 3.8 asyncio.Stream where possible (#369)

6 years agoRemove data, json and files parameters in delete() function (#408)
Jt Miclat [Sat, 28 Sep 2019 17:18:40 +0000 (01:18 +0800)] 
Remove data, json and files parameters in delete() function (#408)

6 years agoRelease 0.7.4 (#388) 0.7.4
Florimond Manca [Thu, 26 Sep 2019 11:45:38 +0000 (13:45 +0200)] 
Release 0.7.4 (#388)

6 years agoDocument supported async libraries (#387)
Florimond Manca [Thu, 26 Sep 2019 11:43:56 +0000 (13:43 +0200)] 
Document supported async libraries (#387)

* Document supported async libraries

* Update async.md

6 years agoRemove trio redundant extra (#390)
Florimond Manca [Thu, 26 Sep 2019 11:02:25 +0000 (13:02 +0200)] 
Remove trio redundant extra (#390)

6 years agoPropogate HTTPProxy config from Client(#377)
Seth Michael Larson [Wed, 25 Sep 2019 12:17:20 +0000 (07:17 -0500)] 
Propogate HTTPProxy config from Client(#377)

6 years agoFix bug when using client without timeouts in Python 3.6 (#383)
Florimond Manca [Wed, 25 Sep 2019 11:31:50 +0000 (13:31 +0200)] 
Fix bug when using client without timeouts in Python 3.6 (#383)

6 years agoRun isort in the nox check session (#379)
Jamie Hewland [Tue, 24 Sep 2019 19:43:21 +0000 (21:43 +0200)] 
Run isort in the nox check session (#379)

6 years agoAdd debug logging to SSLConfig (#378)
Seth Michael Larson [Tue, 24 Sep 2019 15:02:46 +0000 (10:02 -0500)] 
Add debug logging to SSLConfig (#378)

6 years agoAdd debug logs to ASGIDispatch (#371)
Florimond Manca [Mon, 23 Sep 2019 20:49:24 +0000 (22:49 +0200)] 
Add debug logs to ASGIDispatch (#371)

* Add debug logs to ASGIDispatch

* Tidy up ASGIDispatch

* Log entire scope and ASGI messages

* Obfuscate sensitive headers using common utility

* Update utils.py

6 years agoAdd support for SSL_CERT_FILE and SSL_CERT_DIR (#307)
Can Sarıgöl [Mon, 23 Sep 2019 15:24:53 +0000 (18:24 +0300)] 
Add support for SSL_CERT_FILE and SSL_CERT_DIR (#307)

6 years agoFix invalid f-string (#375)
秋葉 [Mon, 23 Sep 2019 14:53:50 +0000 (22:53 +0800)] 
Fix invalid f-string (#375)

6 years agoAdding params to Client (#372)
Tyrel Souza [Mon, 23 Sep 2019 14:22:21 +0000 (10:22 -0400)] 
Adding params to Client (#372)

6 years agoRemove ENABLE_CONNECT_PROTOCOL from HTTP/2 Settings (#373)
Seth Michael Larson [Sun, 22 Sep 2019 22:37:57 +0000 (17:37 -0500)] 
Remove ENABLE_CONNECT_PROTOCOL from HTTP/2 Settings (#373)

6 years agoAdd tool for profiling (#364)
Florimond Manca [Sat, 21 Sep 2019 17:02:02 +0000 (19:02 +0200)] 
Add tool for profiling (#364)

6 years agoAdd trio concurrency backend (#276)
Florimond Manca [Sat, 21 Sep 2019 16:10:20 +0000 (18:10 +0200)] 
Add trio concurrency backend (#276)

6 years agoDocument the release process (#363)
Florimond Manca [Sat, 21 Sep 2019 07:12:53 +0000 (09:12 +0200)] 
Document the release process (#363)

* Document release process

* Update changelog instructions w/ ref to keepachangelog

* Prettify bullet points

* Add docs deploy to release script

6 years agoRelease 0.7.3 (#362) 0.7.3
Florimond Manca [Fri, 20 Sep 2019 19:05:02 +0000 (21:05 +0200)] 
Release 0.7.3 (#362)

* Release 0.7.3

* Put Removed before Fixed

* Add reference to keepachangelog

* Add HTTP Proxy entry

6 years agoConfigure Proxy from Client (#353)
Seth Michael Larson [Fri, 20 Sep 2019 17:33:06 +0000 (12:33 -0500)] 
Configure Proxy from Client (#353)

* Incorporate suggestions

* Start of proxy config

* Incorporate suggestions

* Add proxies to high-level API, docs

* Update client.py

6 years agoAdd zip_safe=False to setup() (#361)
Florimond Manca [Thu, 19 Sep 2019 16:13:20 +0000 (18:13 +0200)] 
Add zip_safe=False to setup() (#361)

This fixes `py.typed` not being included in the built package

6 years agoUse a certificate issued from the trustme CA in tests (#357)
Jamie Hewland [Wed, 18 Sep 2019 23:59:27 +0000 (01:59 +0200)] 
Use a certificate issued from the trustme CA in tests (#357)

6 years agoAdd `.elapsed` onto Response objects tracking how long a request took. (#351)
Roy Williams [Wed, 18 Sep 2019 18:29:01 +0000 (14:29 -0400)] 
Add `.elapsed` onto Response objects tracking how long a request took. (#351)

* Add `.elapsed` onto Response objects tracking how long a request took.

* Move elapsed timing from send methods into _get_response

* Address feedback

* Update tests/test_api.py

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
6 years agoDocument digest auth (#348)
Yeray Diaz Diaz [Mon, 16 Sep 2019 11:50:00 +0000 (12:50 +0100)] 
Document digest auth (#348)

* Document authentication

* Fix linting errors

* Tweak wording

* Update docs/quickstart.md

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
6 years agoFix remaining references to BaseStream in tests (#347)
Florimond Manca [Mon, 16 Sep 2019 06:34:26 +0000 (08:34 +0200)] 
Fix remaining references to BaseStream in tests (#347)

6 years agoStream -> TCPStream (#339)
Florimond Manca [Sun, 15 Sep 2019 21:14:48 +0000 (23:14 +0200)] 
Stream -> TCPStream (#339)

6 years agoDocument + recommend async with syntax for AsyncClient (#344)
Florimond Manca [Sun, 15 Sep 2019 16:29:37 +0000 (18:29 +0200)] 
Document + recommend async with syntax for AsyncClient (#344)

6 years agoImplement HTTPProxy dispatcher (#259)
Seth Michael Larson [Sun, 15 Sep 2019 15:47:35 +0000 (10:47 -0500)] 
Implement HTTPProxy dispatcher (#259)

6 years agoTest Requests entrypoints (#330)
Florimond Manca [Thu, 12 Sep 2019 21:24:33 +0000 (23:24 +0200)] 
Test Requests entrypoints (#330)

* Test Requests entrypoints

* Show summary of unsuccessful tests

6 years agoAdd example of specifying HTTP versions (#337)
Paul (xobb) Chubatyy [Thu, 12 Sep 2019 20:39:22 +0000 (13:39 -0700)] 
Add example of specifying HTTP versions (#337)

Closes #336

6 years agoAdditional DigestAuth tests (#334)
Yeray Diaz Diaz [Wed, 11 Sep 2019 12:25:11 +0000 (13:25 +0100)] 
Additional DigestAuth tests (#334)

6 years agoAdd DigestAuth middleware (#332)
Yeray Diaz Diaz [Tue, 10 Sep 2019 19:53:39 +0000 (20:53 +0100)] 
Add DigestAuth middleware (#332)

* Remove global variable, just return response from auth request

* Add extra space to Digest header start assertion

* Prevent unpacking errors limiting the number of splits

6 years agoAdd `build_request` to `Client` (#319)
Dobrovolsky Bogdan [Sun, 8 Sep 2019 13:03:59 +0000 (16:03 +0300)] 
Add `build_request` to `Client` (#319)

* Update documentation

* Update documentation

* Update tests
Rename `_send` -> `_get_response`
Update documentation

* Code format with black

* Change documentation example to OPTIONS *

* Update documentation
Small code reformat

* `echo_headers` return json

* Simplify test

* Fix typo

6 years agoRefactor middleware (#325)
Florimond Manca [Sat, 7 Sep 2019 21:22:11 +0000 (23:22 +0200)] 
Refactor middleware (#325)

* Split middleware into a subpackage

* Refactor basic auth header building

* Add encoding parameter to to_bytes()

6 years agoRaise KeyError if header isn't found in Headers (#324)
Gaurav Dhameeja [Sat, 7 Sep 2019 21:12:37 +0000 (02:42 +0530)] 
Raise KeyError if header isn't found in Headers (#324)

6 years agoPin uvloop to fix 3.8-dev compilation issue (#323)
Florimond Manca [Sat, 7 Sep 2019 04:32:38 +0000 (06:32 +0200)] 
Pin uvloop to fix 3.8-dev compilation issue (#323)

6 years agoFix bug in calculating maximum frame size (#153)
IsaacBenghiat [Fri, 6 Sep 2019 18:06:20 +0000 (14:06 -0400)] 
Fix bug in calculating maximum frame size (#153)

6 years agoSet Host header when redirecting cross-origin (#321)
Gaurav Dhameeja [Fri, 6 Sep 2019 01:30:19 +0000 (07:00 +0530)] 
Set Host header when redirecting cross-origin (#321)

6 years agoMerge pull request #315 from cansarigol/hstspreload-doc
Tom Christie [Thu, 5 Sep 2019 09:22:48 +0000 (10:22 +0100)] 
Merge pull request #315 from cansarigol/hstspreload-doc

added hstspreload in Dependencies docs

6 years agoMerge pull request #310 from encode/drop-content-length-on-get-redirects
Tom Christie [Thu, 5 Sep 2019 09:21:21 +0000 (10:21 +0100)] 
Merge pull request #310 from encode/drop-content-length-on-get-redirects

Drop Content-Length headers on GET redirects

6 years agoadded hstspreload in Dependencies docs 315/head
can [Thu, 5 Sep 2019 07:40:06 +0000 (10:40 +0300)] 
added hstspreload in Dependencies docs

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 agoMerge pull request #314 from dobrovolsky/drop_npn
Tom Christie [Wed, 4 Sep 2019 13:18:12 +0000 (14:18 +0100)] 
Merge pull request #314 from dobrovolsky/drop_npn

Drop NPN support

6 years agoRemove NPN support 314/head
Dobrovolsky Bogdan [Wed, 4 Sep 2019 13:01:29 +0000 (16:01 +0300)] 
Remove NPN support

6 years agoAdd test for origin from URL string (#312)
Yeray Diaz Diaz [Wed, 4 Sep 2019 11:43:24 +0000 (12:43 +0100)] 
Add test for origin from URL string (#312)

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)