Tom Christie
30692272fd
Merge pull request #255 from encode/refactor/stream-interface
...
Unify BaseReader and BaseWriter as BaseStream
2019-08-21 09:38:39 +01:00
florimondmanca
fdb13592c9
Encapsulate http_version into BaseStream
2019-08-21 09:12:01 +02:00
florimondmanca
14eb81f72d
Unify BaseReader and BaseWriter as BaseStream
2019-08-21 09:02:54 +02:00
Florimond Manca
2e91d8ccdd
Add BaseEvent interface ( #260 )
2019-08-21 09:02:04 +02:00
Tom Christie
c0554e96d9
Refactor interfaces ( #252 )
...
* Move Dispatcher, AsyncDispatcher into dispatch/base.py
* Move concurrency interfaces into concurrency/base.py
2019-08-21 08:35:01 +02:00
Can Sarıgöl
4ea4af661d
Raise TypeError if invalid parameter for HTTPVersionConfig ( #253 )
2019-08-20 17:39:05 -05:00
Florimond Manca
fc261e8149
Add BaseQueue interface ( #257 )
2019-08-21 00:25:46 +02:00
Tom Christie
e0b523dd1b
Merge pull request #241 from encode/protocol-support
...
Allow configuration of supported HTTP protocol versions.
2019-08-20 15:16:28 +01:00
Tom Christie
e69ee77843
Drop Protocol str enum class in favor of plain old strings ( #251 )
...
* Drop Protocol str enum class in favor of plain old strings
* Drop unused import
2019-08-20 15:15:53 +01:00
Tom Christie
c1ec1c33cd
Response.protocol -> Response.http_version ( #250 )
...
* Response.protocol -> Response.http_version
* Update docs
2019-08-20 15:15:38 +01:00
Tom Christie
7408c443f5
Drop unused import
2019-08-20 14:30:23 +01:00
Tom Christie
180050020e
Address review comments
2019-08-20 14:26:43 +01:00
Tom Christie
dfbfa7c7ec
Drop Protocol str enum class in favor of plain old strings
2019-08-20 14:17:26 +01:00
Tom Christie
b343ee4a70
Add Client(http_versions=...) support
2019-08-20 13:30:54 +01:00
Tom Christie
193196bef3
Merge branch 'master' into protocol-support
2019-08-20 13:08:24 +01:00
Tom Christie
4bfe54d610
Drop unneccessary 'sorted'
2019-08-20 12:58:03 +01:00
Tom Christie
a770102fd2
Added http_versions to dispatch interface
2019-08-20 12:56:19 +01:00
Tom Christie
fc27fd2530
Test coverage for HTTPVersionConfig
2019-08-20 12:33:28 +01:00
Florimond Manca
b2397ff39d
Turn concurrency.py into its own sub-package ( #244 )
2019-08-20 06:27:58 -05:00
Tom Christie
f72fa68802
'Protocols' -> 'HTTPVersions'
2019-08-20 12:21:07 +01:00
Tom Christie
cf098f8f4c
Merge branch 'protocol-support' of https://github.com/encode/httpx into protocol-support
2019-08-20 12:03:55 +01:00
Can Sarıgöl
a0aff8d169
fixed __repr__ function of Headers and Url classes ( #222 )
2019-08-20 11:48:28 +01:00
Tom Christie
2ed70ebc2a
Simplify ASGI concurrency ( #248 )
...
* Drop keyword argument
* Improve docstrings for WSGIDispatch and ASGIDispatch
* Add docs for fine grained WSGI/ASGI control
* Simplify concurrency handling in ASGIDispatch
* Variable renaming
* Fix missing nonlocal declaration
* Split nonlocal onto multiple lines
2019-08-20 11:37:37 +01:00
Tom Christie
7fea0723e2
Use correct protocol idents when loading ssl context
2019-08-19 20:19:40 +01:00
Tom Christie
0e49f23b75
Initial pass at configuring supported protocol versions
2019-08-19 20:13:37 +01:00
Can Sarıgöl
79425b28d0
added control to calling decode for empty contents ( #237 )
...
* added tests for all decoder
* fixed BrotliDecoder for b"" value
2019-08-19 16:12:00 +01:00
Tom Christie
ef9fc0f3a7
Drop raise_app_exceptions Client argument. ( #238 )
...
* Drop `raise_app_exceptions` keyword argument
* Improve docstrings for WSGIDispatch and ASGIDispatch
* Add docs for fine grained WSGI/ASGI control
2019-08-19 16:09:11 +01:00
Ordanis Sanchez
a960a2a8fd
Release semaphore if connection is dropped ( #230 )
2019-08-18 14:44:24 -05:00
Florimond Manca
9c7d23ce29
Enforce that sync client uses asyncio-based backend ( #232 )
2019-08-18 09:41:37 -05:00
Seth Michael Larson
caba78568e
Release 0.7.1 ( #234 )
2019-08-18 05:19:14 -05:00
Florimond Manca
b46d9ea2b8
Install package locally in test-requirements.txt ( #231 )
2019-08-18 05:06:59 -05:00
Seth Michael Larson
c35dbce543
Release 0.7.0 ( #228 )
2019-08-17 15:11:30 -05:00
Seth Michael Larson
345a46d6aa
Add CHANGELOG.md for tracking releases ( #227 )
2019-08-17 15:03:50 -05:00
Seth Michael Larson
43f66d5756
Skip coverage on breaks right before returns for Python 3.8 ( #226 )
2019-08-17 13:19:08 -05:00
Can Sarıgöl
21939fdaa8
Documented netrc support ( #225 )
2019-08-17 11:07:04 -05:00
Can Sarıgöl
04d5ffb01b
Add trust_env property to BaseClient ( #187 )
2019-08-17 10:09:49 -05:00
Saugat Pachhai
23f11aaa8d
Use chained comparison in status codes for error and success
2019-08-17 09:07:57 -05:00
Saugat Pachhai
3451028251
Fix typos in docstrings
2019-08-17 09:07:57 -05:00
euri10
e64fcad3b4
Add --diff flag to Black for easier debugging ( #219 )
2019-08-16 09:18:52 -05:00
euri10
cad9c03500
Added links property to BaseResponse ( #211 )
...
* Added docstring and better typing for parsed_header_links
* Added docstring and better typing for links property
Added tests for it too
* Added --diff to black check to see where CI fails
Relaxed travis build on master only
* Fixed black issue removing a \t
* Put noxfile and travis.yml as they were before
2019-08-16 09:07:52 -05:00
Seth Michael Larson
df8874b733
Accept SSLContext into SSLConfig(verify=...) ( #215 )
2019-08-14 22:30:02 -05:00
Seth Michael Larson
af907e85e1
Implement Response.stream_text() ( #183 )
2019-08-14 21:56:17 -05:00
Can Sarıgöl
9536b76f5c
Fail unit tests without 100% coverage ( #206 )
2019-08-14 21:45:28 -05:00
Can Sarıgöl
45177d2cd8
Rely on IRIReference.encode() for IDNA encoding ( #210 )
2019-08-14 21:38:43 -05:00
Humberto Rocha
7156c36eb3
Add additional info to Contributing Guide ( #213 )
2019-08-14 21:37:44 -05:00
Can Sarıgöl
c5248e6c20
Run SSLConfig cert loading in threadpool ( #209 )
2019-08-14 21:30:01 -05:00
Tammo Behrends
bebedcbd5d
Explicitly check is_redirect in simple test case ( #208 )
2019-08-14 06:22:12 -05:00
Humberto Rocha
e51b2125c9
Move all tooling configuration to setup.cfg ( #204 )
2019-08-13 16:27:00 -05:00
Can Sarıgöl
1b82d6373b
Add flake8-comprehensions to nox check task ( #200 )
...
* fixed as flake8-comprehensions
* added site folder into gitignore
2019-08-13 09:22:18 -05:00
Seth Michael Larson
80dc3e274e
Use nox for automation and CI ( #128 )
2019-08-13 08:39:35 -05:00