Florimond Manca
08355c62f5
Add trio concurrency backend ( #276 )
2019-09-21 11:10:20 -05:00
Florimond Manca
12752466ae
Document the release process ( #363 )
...
* Document release process
* Update changelog instructions w/ ref to keepachangelog
* Prettify bullet points
* Add docs deploy to release script
2019-09-21 09:12:53 +02:00
Florimond Manca
7a08aaa536
Release 0.7.3 ( #362 )
...
* Release 0.7.3
* Put Removed before Fixed
* Add reference to keepachangelog
* Add HTTP Proxy entry
2019-09-20 21:05:02 +02:00
Seth Michael Larson
b0fa0859a8
Configure Proxy from Client ( #353 )
...
* Incorporate suggestions
* Start of proxy config
* Incorporate suggestions
* Add proxies to high-level API, docs
* Update client.py
2019-09-20 12:33:06 -05:00
Florimond Manca
061d943b78
Add zip_safe=False to setup() ( #361 )
...
This fixes `py.typed` not being included in the built package
2019-09-19 11:13:20 -05:00
Jamie Hewland
338a360785
Use a certificate issued from the trustme CA in tests ( #357 )
2019-09-18 18:59:27 -05:00
Roy Williams
05ac117679
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>
2019-09-18 20:29:01 +02:00
Yeray Diaz Diaz
8155352d20
Document digest auth ( #348 )
...
* Document authentication
* Fix linting errors
* Tweak wording
* Update docs/quickstart.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
2019-09-16 12:50:00 +01:00
Florimond Manca
6c6148ec5c
Fix remaining references to BaseStream in tests ( #347 )
2019-09-16 08:34:26 +02:00
Florimond Manca
315a18b4cf
Stream -> TCPStream ( #339 )
2019-09-15 16:14:48 -05:00
Florimond Manca
4616031202
Document + recommend async with syntax for AsyncClient ( #344 )
2019-09-15 18:29:37 +02:00
Seth Michael Larson
57c27cac36
Implement HTTPProxy dispatcher ( #259 )
2019-09-15 10:47:35 -05:00
Florimond Manca
f1dde95d35
Test Requests entrypoints ( #330 )
...
* Test Requests entrypoints
* Show summary of unsuccessful tests
2019-09-12 23:24:33 +02:00
Paul (xobb) Chubatyy
0c4460e622
Add example of specifying HTTP versions ( #337 )
...
Closes #336
2019-09-12 22:39:22 +02:00
Yeray Diaz Diaz
1cd9156d5d
Additional DigestAuth tests ( #334 )
2019-09-11 07:25:11 -05:00
Yeray Diaz Diaz
fd3b69d2aa
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
2019-09-10 14:53:39 -05:00
Dobrovolsky Bogdan
08edfac37d
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
2019-09-08 08:03:59 -05:00
Florimond Manca
71648ece09
Refactor middleware ( #325 )
...
* Split middleware into a subpackage
* Refactor basic auth header building
* Add encoding parameter to to_bytes()
2019-09-07 23:22:11 +02:00
Gaurav Dhameeja
0f34f3b60f
Raise KeyError if header isn't found in Headers ( #324 )
2019-09-07 16:12:37 -05:00
Florimond Manca
6b97b2ed00
Pin uvloop to fix 3.8-dev compilation issue ( #323 )
2019-09-06 23:32:38 -05:00
IsaacBenghiat
ab9cd0ea11
Fix bug in calculating maximum frame size ( #153 )
2019-09-06 13:06:20 -05:00
Gaurav Dhameeja
3065dd6b6c
Set Host header when redirecting cross-origin ( #321 )
2019-09-05 20:30:19 -05:00
Tom Christie
67d96b6522
Merge pull request #315 from cansarigol/hstspreload-doc
...
added hstspreload in Dependencies docs
2019-09-05 10:22:48 +01:00
Tom Christie
33c5fe0374
Merge pull request #310 from encode/drop-content-length-on-get-redirects
...
Drop Content-Length headers on GET redirects
2019-09-05 10:21:21 +01:00
can
c7af2b1a5d
added hstspreload in Dependencies docs
2019-09-05 10:40:06 +03:00
Tom Christie
5961bd8ba3
Apply black formatting
2019-09-04 15:11:40 +01:00
Tom Christie
69982ed46c
Strip Transfer-Encoding when a switch-to-GET redirect is made
2019-09-04 15:10:55 +01:00
Tom Christie
f3bdbfb01a
Merge branch 'drop-content-length-on-get-redirects' of https://github.com/encode/httpx into drop-content-length-on-get-redirects
2019-09-04 15:06:25 +01:00
Tom Christie
4336550d22
Add tests for dropping Content-Length headers
2019-09-04 15:06:14 +01:00
Tom Christie
cbe76164eb
Merge pull request #314 from dobrovolsky/drop_npn
...
Drop NPN support
2019-09-04 14:18:12 +01:00
Dobrovolsky Bogdan
d0953d1d86
Remove NPN support
2019-09-04 16:01:29 +03:00
Yeray Diaz Diaz
fa74aaa6db
Add test for origin from URL string ( #312 )
2019-09-04 13:43:24 +02:00
florimondmanca
c2eeb662df
Remove example script
2019-09-03 19:22:03 +02:00
Tom Christie
e5964b31f1
White whitespacing
2019-09-03 15:02:40 +01:00
Tom Christie
0a2d58b8f1
Apply black formatting (Tho it looks like a broken case to me?)
2019-09-03 15:01:37 +01:00
Tom Christie
0276ff9880
Drop Content-Length headers on GET redirects
2019-09-03 14:36:03 +01:00
Seth Michael Larson
b8c5e7a852
Add os.environ fixture ( #308 )
2019-09-02 23:12:52 +02:00
Florimond Manca
40e6e8c99d
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
2019-09-01 23:01:14 +02:00
Tomás Farías
db7f2d0df3
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
2019-09-01 08:01:11 -05:00
Bakhtiyor Ruziev
e34d280673
Add server.url property in tests ( #300 )
...
* Add server.url to test server
* Move a property to top of the class
2019-09-01 09:07:22 +02:00
Florimond Manca
a46462764e
Tighten up response.next() ( #297 )
2019-08-31 09:09:35 -05:00
Florimond Manca
994403bec9
Serve test server in thread ( #292 )
2019-08-29 23:17:14 +02:00
Min ho Kim
e9b20995f7
Fix typos in comments ( #294 )
2019-08-29 19:14:15 +02:00
Seth Michael Larson
8c456e48e9
Release 0.7.2 ( #291 )
2019-08-29 07:19:02 -05:00
toppk
9e420a5c34
Automatically convert Client.cookies and Client.headers on set ( #274 )
2019-08-27 19:25:30 -05:00
Jt Miclat
1f4b8dd054
Allow per file running of tests ( #287 )
...
* Allow per file running of tests
* Simply PR
2019-08-27 11:51:36 -05:00
Seth Michael Larson
6f4f186522
Add easier debug logging for users ( #277 )
...
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
2019-08-27 11:43:13 -05:00
Jt Miclat
33032df0b0
Stop running nox on first error ( #286 )
2019-08-27 11:08:50 -05:00
Seth Michael Larson
e7aa6d6710
Force HTTP/1.1 on short-lived connections ( #284 )
2019-08-27 07:54:11 -05:00
Florimond Manca
8ea32e647f
Add tests to known first parties in isort config ( #279 )
2019-08-26 15:16:51 -05:00