Florimond Manca
bdfabe1e9a
Setup custom domain ( #751 )
2020-01-11 09:38:09 +00:00
wynnw
b7c0d3446c
Fix typo on "synonyms" ( #748 )
2020-01-10 23:46:31 +01:00
Mason Hall
b112b23152
Fix typo in async.md ( #747 )
2020-01-10 18:31:43 +01:00
Jakob Jul Elben
918c55de90
Update api.py ( #745 )
2020-01-09 18:10:06 +00:00
Luís Gustavo
c225e95b1d
Fix typo in 'Streaming responses' docs ( #744 )
2020-01-09 12:23:33 +00:00
Tom Christie
7b576fae79
Update CHANGELOG.md
2020-01-09 10:25:23 +00:00
Tom Christie
367bff621c
Use www.python-httpx.org domain
2020-01-09 09:49:25 +00:00
Tom Christie
d515e4b1aa
Fix repo URL
2020-01-09 09:45:54 +00:00
Tom Christie
2c5fdc51f4
Version 0.11.0 ( #737 )
...
* Version 0.11.0
* Update CHANGELOG.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update CHANGELOG.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update CHANGELOG.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Bump status to beta
* Update release date to today
* Update changelog
* Use www.python-httpx.org domain
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-09 09:35:56 +00:00
Tom Christie
97807bf607
Link to changelog
2020-01-09 09:22:54 +00:00
Tom Christie
b932d94d99
Use www.python-httpx.org domain
2020-01-09 09:18:32 +00:00
Tom Christie
2038919b7e
Proposed 0.11 docs ( #727 )
...
* Proposed 0.11 docs
* Add async section and link in
* Update docs/advanced.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/quickstart.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Docs updates
* Use context-managed client instances in examples
* Update README with links to docs site, rather than to .md documents
* "99% test coverage"
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Add Client.close method to API docs
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-08 12:51:52 +00:00
Tom Christie
eac4b9ba74
Improve docstring for PoolLimits ( #712 )
...
* Improve docstring for PoolLimits
* Linting for docstring
2020-01-08 12:33:35 +00:00
Tom Christie
ee37a762ef
Reintroduce sync API. ( #735 )
...
* BaseClient and AsyncClient
* Introduce 'httpx.Client'
* Top level API -> sync
* Top level API -> sync
* Add WSGI support, drop deprecated imports
* Wire up timeouts to urllib3
* Wire up pool_limits
* Add urllib3 proxy support
* Pull #734 into sync Client
* Update AsyncClient docstring
* Simpler WSGI implementation
* Set body=None when no content
* Wrap urllib3 connection/read exceptions
2020-01-08 12:31:50 +00:00
Yurii Ohorodnik
387f04732b
Fixed redirect loop ( #734 )
...
* fixed redirect loop
* linted with flake8
* linted with flake8
2020-01-07 16:13:06 +00:00
Tom Christie
c842c8ff20
proxies_to_dispatchers -> get_proxy_map ( #733 )
2020-01-07 13:37:57 +00:00
Tom Christie
12dd157fea
Public Auth API ( #732 )
...
* Public Auth API
* Minor docs tweak
* Request.aread and Request.content
* Support requires_request_body
* Update tests/models/test_requests.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-07 13:20:23 +00:00
Tom Christie
c5037f06e4
Drop per-request 'cert'/'verify'/'trust_env', and 'stream=bool' arguments ( #730 )
2020-01-07 12:24:26 +00:00
Andrés Álvarez
2b92a78c41
Drop Origin from public API ( #688 )
...
- Drop the url.origin property.
- Drop Origin from the top-level export.
- Use origin = Origin(url) in our internal usage, rather than
url.origin.
Closes #656
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-01-07 10:39:47 +00:00
Tom Christie
f17ab37b2f
Prep for introducing SyncClient ( #713 )
...
* Reorganize method ordering in client
* Move 'request'
* Use 'httpx.Proxy' for proxy configuration
2020-01-07 10:27:01 +00:00
Florimond Manca
e1afbfa7b4
Wrap network errors in HTTPX-specific exceptions ( #707 )
2020-01-07 10:01:11 +00:00
Tom Christie
e19bd9bc4b
Dispatcher -> AsyncDispatcher ( #725 )
...
* Dispatcher -> AsyncDispatcher
* Fix invalid renamings
* Fix invalid renamings
2020-01-06 12:08:14 +00:00
Tom Christie
6ac49dacdd
Drop run and run_in_threadpool ( #710 )
...
* Drop run and run_in_threadpool
* Fix server restart errors
* Re-introduce 'sleep' as a concurrency test utility
* Simpler test concurrency utils
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-06 11:14:43 +00:00
Florimond Manca
bd57b650a8
Release max_connections for keepalive connections when closing the connection pool ( #721 )
2020-01-06 11:13:06 +00:00
Kousik Mitra
0ed0314569
Raise an exception in DigestAuth if non-replayable request is passed ( #685 )
...
* DigestAuth will raise exception if non-replayble request is passed #670
* Added new exception RequestBodyUnavailble exception to raise non replayable request error #670
* Changed RedirectBodyUnavailable exception to RequestBodyUnavailble to raise non-replayable exception #670
* fixed class declaration
* Added RequestBodyUnavailable exception. Imported it in module level
* Added RequestBodyUnavailable in the module list
* Code reformat
* Added Test to check if exception is raising if non-replayble request body is passed to DigestAuth #670
2020-01-04 10:00:34 +01:00
Florimond Manca
bc6163c55a
Record history of requests made during authentication ( #718 )
...
* Record history of requests made during authentication
* Add asserts on digest auth history
Co-Authored-By: Gaurav Dhameeja <gdhameeja@gmail.com>
2020-01-03 22:59:16 +01:00
Florimond Manca
910aa9094c
Repurpose RedirectBodyUnavailable as RequestBodyUnavailable ( #690 )
2020-01-03 22:25:55 +01:00
Florimond Manca
ff44d2d1b8
Fix typo in 'Redirection and History' docs ( #719 )
2020-01-03 21:14:13 +00:00
Tom Christie
79a9748ae6
Load SSL Context on init ( #709 )
2020-01-02 16:52:23 +00:00
Tom Christie
f5eaec7ab3
More coverage improvements ( #711 )
...
* More coverage improvements
* Drop redundant 'sleep' usage in test utils
2020-01-02 15:33:26 +00:00
Tom Christie
11e7604d1a
Sync streaming interface on responses ( #695 )
...
* Sync streaming interface on responses
* Fix test case
* Test coverage for sync response APIs
* Address review comments
2020-01-02 12:56:11 +00:00
Tom Christie
b0bf2a7513
SSLConfig refactor ( #706 )
...
* SSLConfig includes 'http2' argument on init.
* Pass SSL config to HTTPConnection as a single argument
* Don't run SSL context loading in threadpool
2020-01-02 10:54:04 +00:00
Tom Christie
a9f4d018e1
Version 0.10.1 ( #701 )
2020-01-01 15:36:11 +00:00
Tom Christie
b8394f1e00
Bump coverage ( #705 )
...
* Bump coverage
* Tests for iterative text decoding with 'aiter_text'
* nocover on xfail exception cases
* nocover API that is pending deprecation
* Tweak test to removed uncovered line
* Ingest request body in RedirectBodyUnavailable test case
2020-01-01 15:33:24 +00:00
Joe
f5d4bb8074
Make timeout parameter None-able & cleanup __all__. ( #704 )
...
* Timeout type annotation includes `None`.
* Cleanup `__all__` exports.
2020-01-01 13:45:38 +00:00
Tom Christie
c050480387
Drop unused Request.cookies ( #703 )
2020-01-01 13:05:49 +00:00
Tom Christie
fe86c0c4b4
Drop unused SSLConfig.with_overrides ( #702 )
2019-12-31 15:24:50 +00:00
Tom Christie
2c4a1dd519
Drop OpenConnection ( #700 )
2019-12-31 13:18:23 +00:00
Tom Christie
56afde1f9f
Lock around stream.write and stream.close operations ( #699 )
2019-12-31 13:18:00 +00:00
David Larlet
22663bc66e
Update link to timeout fine tuning in quickstart ( #696 )
2019-12-31 12:02:14 +00:00
Gabriel Strauss
de8b95533d
Adds check to enforce single consumption of AsyncIteratorStream. ( #697 )
2019-12-31 12:01:43 +00:00
Tom Christie
35b7516674
Version 0.10.0 ( #691 )
...
* Version 0.10.0
* Update CHANGELOG.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Include changelog for 'response.request is no longer optional'.
* Add response.elapsed note to changelog
* Also ref original PR for response.elapsed behavior
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2019-12-29 17:00:34 +00:00
Tom Christie
6a1ee0eb97
response.elapsed now reflects entire request/response time. ( #692 )
...
* Changed behaviour of elapsed on response
* Fixed api docs for Response elapsed
* Minor tweaks to 'request.elapsed'
* Response instantiated with content should have elapsed==0
* Fix elapsed time on immediately closed responses.
2019-12-29 16:56:18 +00:00
Tom Christie
1f9d0154df
Switch from an Event primitive to a Lock primitive ( #693 )
2019-12-29 16:38:54 +00:00
Florimond Manca
e284b84bf9
Rename Client to AsyncClient (with compat synonym) ( #680 )
...
* Rename Client to AsyncClient (with compat synonym)
* Document motivation for AsyncClient renaming
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:34:23 +00:00
Florimond Manca
3462999366
Rename 'next' to 'anext' on Response ( #676 )
...
* Rename 'next' to 'anext' on Response
* Drop iscoroutinefunction() check
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:34:07 +00:00
Florimond Manca
d5da7430a2
Rename 'close' to 'aclose' on Client ( #675 )
...
* Switch to aclose on Client
* Fix reference to aclose in API docs
2019-12-29 15:15:09 +00:00
Florimond Manca
f9d18a8758
Rename 'read/close' to 'aread/aclose' on Response ( #674 )
...
* Switch to aread/aclose on responses
* Linting
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:14:53 +00:00
Tom Christie
25b40db757
Drop Request.read() ( #679 )
2019-12-29 15:02:03 +00:00
Florimond Manca
e9ebd1df98
Drop per-request cert, verify, and trust_env ( #617 )
...
* Drop per-request cert/verify/trust_env
* Remove cert/verify from the dispatcher API
* Apply lint
* Reintroduce cert/verify/trust_env on client methods, with errors
2019-12-29 15:01:20 +00:00