smithy-http 0.4.1__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smithy_http-0.4.2/.changes/0.4.2.json +8 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/CHANGELOG.md +5 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/PKG-INFO +1 -1
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/__init__.py +1 -1
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/aiohttp.py +7 -1
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/interfaces/__init__.py +8 -1
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.0.1.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.1.0.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.2.0.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.2.1.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.3.0.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.3.1.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.4.0.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.changes/0.4.1.json +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/.gitignore +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/NOTICE +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/README.md +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/pyproject.toml +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/auth/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/auth/apikey.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/crt.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/identity/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/identity/apikey.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/protocols.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/aio/restjson.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/bindings.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/deserializers.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/endpoints.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/exceptions.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/interceptors/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/interceptors/user_agent.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/interfaces/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/plugins/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/py.typed +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/restjson.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/serializers.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/testing/__init__.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/testing/mockhttp.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/testing/utils.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/user_agent.py +0 -0
- {smithy_http-0.4.1 → smithy_http-0.4.2}/src/smithy_http/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: smithy-http
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: HTTP components for Smithy tooling.
|
|
5
5
|
Project-URL: Changelog, https://github.com/smithy-lang/smithy-python/blob/develop/packages/smithy-http/CHANGELOG.md
|
|
6
6
|
Project-URL: Code, https://github.com/smithy-lang/smithy-python/blob/develop/packages/smithy-http/
|
|
@@ -65,7 +65,13 @@ class AIOHTTPClient(HTTPClient):
|
|
|
65
65
|
"""
|
|
66
66
|
_assert_aiohttp()
|
|
67
67
|
self._config = client_config or AIOHTTPClientConfig()
|
|
68
|
-
|
|
68
|
+
# Disable transparent response decompression and advertise
|
|
69
|
+
# 'identity' to request uncompressed responses.
|
|
70
|
+
# TODO: add a functional test once the test client framework exists
|
|
71
|
+
self._session = _session or aiohttp.ClientSession(
|
|
72
|
+
auto_decompress=False,
|
|
73
|
+
headers={"Accept-Encoding": "identity"},
|
|
74
|
+
)
|
|
69
75
|
|
|
70
76
|
async def send(
|
|
71
77
|
self,
|
|
@@ -64,7 +64,14 @@ class HTTPResponse(Response, Protocol):
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
class HTTPClient(ClientTransport[HTTPRequest, HTTPResponse], Protocol):
|
|
67
|
-
"""An asynchronous HTTP client interface.
|
|
67
|
+
"""An asynchronous HTTP client interface.
|
|
68
|
+
|
|
69
|
+
Header field names and values are not validated before reaching this
|
|
70
|
+
layer. Implementations of ``HTTPClient`` are responsible for
|
|
71
|
+
validating and handling those invalid and dangerous characters (such
|
|
72
|
+
as CR, LF, or NUL) as defined in `RFC 9110, Section 5.5
|
|
73
|
+
<https://www.rfc-editor.org/rfc/rfc9110#section-5.5>`_.
|
|
74
|
+
"""
|
|
68
75
|
|
|
69
76
|
def __init__(self, *, client_config: HTTPClientConfiguration | None) -> None:
|
|
70
77
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|