Tom Christie
56d880030e
Version 0.13.3 ( #1006 )
2020-05-29 11:28:27 +01:00
Tom Christie
1e1a56f99b
Include missing keepalive_expiry configuration ( #1005 )
2020-05-29 11:10:36 +01:00
Josep Cugat
093cb42500
Improve error when redirecting with custom schemes ( #1002 )
...
Fixes #822
2020-05-28 13:11:17 +02:00
Hasan Ramezani
21d7e16559
Fixed mypy errors in test_async_client.py and test_client.py ( #985 )
2020-05-27 21:29:52 +02:00
Tom Christie
f5e1aa5517
Version 0.13.2 ( #1001 )
2020-05-27 15:58:41 +01:00
Tom Christie
3721a7869e
Use AnyStr where appropriate ( #999 )
...
* Use AnyStr where appropriate
* Update httpx/_types.py
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Update _types.py
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-27 15:17:08 +01:00
Tom Christie
7c8158a852
Add "Content-Length: 0" on POST, PUT, PATCH if required. ( #995 )
...
* Add Content-Length: 0 on POST, PUT, PATCH if required.
* Update tests/client/test_client.py
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-26 15:03:55 +01:00
Florimond Manca
66a4537959
Add mypy config for tests directory ( #991 )
2020-05-25 08:39:51 +02:00
Florimond Manca
c14350336e
Tweak handling of None values in timeout type hints ( #992 )
2020-05-25 07:56:20 +02:00
Florimond Manca
440b5ab95f
Remove unused concurrency test utils ( #989 )
2020-05-24 11:38:24 +02:00
Florimond Manca
aa630d36c2
Tweak Question issue template ( #988 )
...
"Not getting an aswer" from the community chat is not a required item to submit a question issue. :-)
2020-05-24 10:57:49 +02:00
Tom Christie
a4145ce2fb
Add 'http2' for Client ( #982 )
2020-05-22 11:52:08 +01:00
Tom Christie
ebc9c29365
Version 0.13.1 ( #981 )
2020-05-22 10:34:01 +01:00
Jamie Hewland
e724abdcd1
Fix pool option warnings for default connection pool ( #980 )
...
* warn_deprecated: Set stacklevel=2 to get real source of warning
* Use new pool limit options in default pool
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-05-22 10:31:21 +01:00
Tom Christie
c30acf09fb
Add urllib3proxy transport to init ( #979 )
...
* Update HTTP/2 docs
* Include URLLib3ProxyTransport in top-level API
* Linting
2020-05-22 10:30:56 +01:00
Tom Christie
bafa32aa67
Update HTTP/2 docs
2020-05-22 10:16:08 +01:00
Tom Christie
2c2c6a71a9
Version 0.13 ( #971 )
...
* Version 0.13
* Update docs to 0.13 as the latest
* Whitespacing tweak
* More explicit notes about transport API renamings
* Update changelog
Co-authored-by: florimondmanca <florimond.manca@gmail.com>
2020-05-22 09:41:02 +01:00
Tom Christie
b57482d7fe
Add URLLib3ProxyTransport
2020-05-22 09:36:04 +01:00
Florimond Manca
9f58afd8f9
Tighten multipart implementation types ( #975 )
2020-05-21 17:41:36 +02:00
Florimond Manca
f1b3d74abb
Tweak files type hints ( #976 )
2020-05-21 17:34:45 +02:00
Florimond Manca
ab9ace2749
Fix bytes support in multipart uploads ( #974 )
2020-05-21 16:25:31 +02:00
Florimond Manca
a58be59adb
Add note on streaming uploads ( #973 )
2020-05-21 16:13:16 +02:00
Tom Christie
3686f2d454
Drop URLLib3Dispatch compat shim ( #972 )
2020-05-21 14:30:43 +01:00
Tom Christie
225f1e259a
Use URLLib3 configuration options for URLLib3 transport ( #970 )
...
* Use URLLib3 configuration options for URLLib3 transport
* Drop redundant code
2020-05-21 14:20:16 +01:00
Tom Christie
99a5c78bbb
Update dependencies in docs ( #969 )
...
* Update dependencies in docs
* Update README.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Update docs/index.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-21 13:43:34 +01:00
Tom Christie
991915a935
Rename pool limit options ( #968 )
...
* Pass proxy_url
* Rename hard_limit/soft_limit
* Use 'warn_deprecated' function
* Update PoolLimits docs
* Linting
* Update httpcore dependancy
* Update port in Transport API to be 'Optional[int]'
2020-05-21 13:26:20 +01:00
Tom Christie
9b6605c3d5
Updates for httpcore 0.9 interface. ( #967 )
...
* Pass proxy_url
* Update httpcore dependancy
* Update port in Transport API to be 'Optional[int]'
2020-05-21 13:21:43 +01:00
Yeray Diaz Diaz
d2816c9c48
Transport API ( #963 )
...
* Deprecate Client arg 'dispatch' and use 'transport'
* Remove line in test from coverage
* Document custom transports
* _dispatch > _transports
Also rename *Dispatch classes to *Transport and added aliases
* Fix linting issues
* Missed one _transports import
* Promote URLLib3Transport to public API
* Remove duplicate arg doc
* Assert that urllib3 is imported to use URLLib3Transport
* `AsyncClient`, not asynchronous `Client`
* Add warning category to warn calls
* Update docs/advanced.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Add warn_deprecated utility function
* Amend docs references to dispatch
* Add concrete implementation example
* Clearer transport implementation description
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-21 12:22:17 +01:00
Tom Christie
ba073c8a46
Clean up docs scripts ( #953 )
...
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-15 20:49:08 +01:00
Tom Christie
0a8b0c65bd
Enforce coverage ( #955 )
...
* Enforce coverage when running tests
* Enforce test coverage
2020-05-15 16:17:33 +01:00
Tom Christie
51b70b3fca
If scripts/check fails then prompt and autofix. ( #952 )
...
* If scripts/check fails then prompt and autofix
* Update scripts/test
Co-authored-by: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>
* Update test
Co-authored-by: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>
2020-05-15 13:22:46 +01:00
Yeray Diaz Diaz
790a3ead5d
Document pool_limits and SSL context on verify ( #942 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-05-13 11:53:35 +01:00
Tom Christie
d6b3794395
Attempt to resolve test flakiness ( #946 )
2020-05-12 16:02:25 +01:00
Tom Christie
97d488a95c
Version 0.13.0.dev2 ( #941 )
...
* Update __version__.py
* Update CHANGELOG.md
* Update setup.py
* Update CHANGELOG.md
2020-05-12 10:20:22 +01:00
Jamie Hewland
d568ecda53
ASGI: Wait for response to complete before sending disconnect message ( #919 )
...
* asgi: Wait for response to complete before sending disconnect message
* Dial back type checking + remove concurrency module
* Remove somewhat redundant comment
2020-05-12 10:06:53 +01:00
Yeray Diaz Diaz
560b119d32
Version 0.13.0.dev1 ( #935 )
2020-05-06 15:49:00 +01:00
Yeray Diaz Diaz
4af3dd7abc
Pass http2 flag to proxy dispatch ( #934 )
2020-05-06 15:08:38 +01:00
Yeray Diaz Diaz
afbd4c846a
Document dev proxy setup ( #933 )
2020-05-06 12:11:05 +01:00
Tom Christie
d34c89a819
Update test-suite.yml ( #925 )
...
Run Test Suite on commits to master.
2020-05-04 12:52:23 +01:00
Florimond Manca
8c182e271f
Mark Response.json() as returning Any ( #923 )
2020-05-02 14:29:56 +02:00
Ryan Balfanz
3b9ebe0523
Fix small typo ( #920 )
2020-05-01 20:37:01 +02:00
Tom Christie
30102612b7
Fix VERSION_FILE in publish script. ( #916 )
2020-05-01 13:47:29 +01:00
Jamie Hewland
8710079d5d
asgi: Send http.disconnect message on receive() after response complete ( #909 )
...
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-01 11:51:35 +02:00
Tom Christie
bed3d8bd38
Version 0.13.0.dev0 ( #915 )
...
* Version 0.13.0.dev0
* Bump httpcore
* Include packaging in requirements
* Include note on UDS support
* Update CHANGELOG
2020-04-30 17:09:49 +01:00
Tom Christie
e586e5df37
Publish workflow ( #913 )
...
* Publish workflow
* Set PYTHONPATH to allow auto docs to import package
* Seperate install, build, publish steps
2020-04-30 15:22:54 +01:00
Nicholas Guriev
97cf9dadd2
Proper warning level of deprecation notice ( #908 )
...
This enables us to control emitted messages via the PYTHONWARNINGS
environment variable or by -W option.
2020-04-25 09:42:03 +02:00
Tom Christie
c6872e1fea
Update README.md
2020-04-24 16:47:24 +01:00
Tom Christie
19bf2112a1
Test Suite on GitHub Actions ( #907 )
...
* Test Suite on GitHub Actions
* Add linting checks
* Update badges. Drop unused codecov, pending GitHub action support,
2020-04-24 16:46:45 +01:00
David Vo
9085582211
Avoid hasattr in hot loop in Brotli decoder ( #906 )
2020-04-19 09:03:56 +02:00
Florimond Manca
4c01117dd2
Move types definitions to a dedicated module ( #902 )
2020-04-15 13:12:09 +02:00