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
Florimond Manca
5829ecb648
Implement streaming multipart uploads ( #857 )
...
* Implement streaming multipart uploads
* Tweak seekable check
* Don't handle duplicate computation yet
* Add memory test for multipart streaming
* Lint
* 1 pct is enough
* Tweak lazy computations, fallback to non-streaming for broken filelikes
* Reduce diff size
* Drop memory test
* Cleanup
2020-04-10 20:40:04 +02:00
Florimond Manca
af75908b7a
Drop concurrency backends ( #901 )
...
* Drop concurrency backends
* Put back as_network_error for use in urllib3 dispatcher
2020-04-10 18:48:01 +02:00
Tom Christie
3046e920ea
Httpcore interface ( #804 )
...
* First pass as switching dispatchers over to httpcore interface
* Updates for httpcore interface
* headers in dispatch API as plain list of bytes
* Integrate against httpcore 0.6
* Integrate against httpcore interface
* Drop UDS, since not supported by httpcore
* Fix base class for mock dispatchers in tests
* Merge master and mark as potential '0.13.dev0' release
2020-04-08 13:32:10 +01:00
Tom Christie
631ba97635
Revert "Add content-length header for empty bytestream ( #866 )" ( #898 )
...
This reverts commit 939f3ce7ce .
2020-04-08 13:15:22 +01:00
Florimond Manca
4ef5de4002
Add issue templates ( #880 )
...
* Add issue templates
* Fix typos/phrasing
* Swap docs and GH search
Co-Authored-By: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>
* Drop code example in favor of prose
* Update .github/ISSUE_TEMPLATE/2-bug-report.md
Co-Authored-By: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>
Co-authored-by: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>
2020-03-29 15:55:12 +02:00
Ed Singleton
94323f98ac
Fix support for generator-based WSGI apps ( #887 )
...
* Handle generator WSGI app
* Lint code
* Add type annotations
* Add more tests
* Refactor test to use application_factory
* Remove content length as it's misleading
* Add test for WSGI generator
* Add test for empty generator
* Remove previous tests
* Move docstring to a comment
* Fix whitespace
* Fix name of function
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update tests/test_wsgi.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update tests/test_wsgi.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update httpx/_dispatch/wsgi.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-03-29 13:13:01 +02:00
Florimond Manca
1c9b852783
Improve type hinting for HTTPError.request ( #886 )
2020-03-29 13:12:05 +02:00
Florimond Manca
d63108d613
Fix casing nits ( #889 )
2020-03-29 12:46:38 +02:00
Florimond Manca
3acd72a6ee
Remove stitches in requirements.txt ( #888 )
...
* Remove stitches in requirements.txt
* Put back attrs pin
2020-03-29 12:44:56 +02:00
Florimond Manca
8f400c269e
Drop usage of AnyStr ( #882 )
2020-03-29 11:39:31 +02:00
Ed Singleton
fc980e7792
Fix Client Docstring and add AsyncClient to API docs ( #883 )
...
* Fix docstring of Client
* Add AsyncClient to API docs
* Add AsyncClient to ToC
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-03-28 17:22:10 +01:00
Dima Boger
939f3ce7ce
Add content-length header for empty bytestream ( #866 )
...
Also, fixed related tests
2020-03-28 16:05:06 +01:00