smithy-http 0.3.0__tar.gz → 0.3.1__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.3.1/.changes/0.3.1.json +12 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/CHANGELOG.md +8 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/PKG-INFO +2 -2
- {smithy_http-0.3.0 → smithy_http-0.3.1}/pyproject.toml +1 -1
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/__init__.py +1 -1
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/crt.py +1 -1
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/serializers.py +1 -1
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.changes/0.0.1.json +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.changes/0.1.0.json +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.changes/0.2.0.json +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.changes/0.2.1.json +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.changes/0.3.0.json +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/.gitignore +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/NOTICE +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/README.md +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/aiohttp.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/auth/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/auth/apikey.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/identity/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/identity/apikey.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/interfaces/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/protocols.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/aio/restjson.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/bindings.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/deserializers.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/endpoints.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/exceptions.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/interceptors/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/interceptors/user_agent.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/interfaces/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/plugins/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/py.typed +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/restjson.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/testing/__init__.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/testing/mockhttp.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/testing/utils.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/user_agent.py +0 -0
- {smithy_http-0.3.0 → smithy_http-0.3.1}/src/smithy_http/utils.py +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"changes": [
|
|
3
|
+
{
|
|
4
|
+
"type": "bugfix",
|
|
5
|
+
"description": "Fixed empty error messaging for CRT-based timeout errors."
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "dependency",
|
|
9
|
+
"description": "Removed strict pinning on `smithy-core` in favor of client managed versions."
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: smithy-http
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
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/
|
|
@@ -24,7 +24,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
24
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
25
25
|
Classifier: Topic :: Software Development :: Libraries
|
|
26
26
|
Requires-Python: >=3.12
|
|
27
|
-
Requires-Dist: smithy-core
|
|
27
|
+
Requires-Dist: smithy-core
|
|
28
28
|
Provides-Extra: aiohttp
|
|
29
29
|
Requires-Dist: aiohttp<4.0,>=3.11.12; extra == 'aiohttp'
|
|
30
30
|
Requires-Dist: yarl; extra == 'aiohttp'
|
|
@@ -187,7 +187,7 @@ class AWSCRTHTTPClient(http_aio_interfaces.HTTPClient):
|
|
|
187
187
|
return await self._await_response(crt_stream)
|
|
188
188
|
except AwsCrtError as e:
|
|
189
189
|
if e.name in self._TIMEOUT_ERROR_NAMES:
|
|
190
|
-
raise _CRTTimeoutError() from e
|
|
190
|
+
raise _CRTTimeoutError(f"CRT {e.name}: {e.message}") from e
|
|
191
191
|
raise
|
|
192
192
|
|
|
193
193
|
async def _await_response(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
from asyncio import iscoroutinefunction
|
|
4
3
|
from base64 import b64encode
|
|
5
4
|
from collections.abc import Callable, Iterator, Sized
|
|
6
5
|
from contextlib import contextmanager
|
|
7
6
|
from datetime import datetime
|
|
8
7
|
from decimal import Decimal
|
|
8
|
+
from inspect import iscoroutinefunction
|
|
9
9
|
from io import BytesIO
|
|
10
10
|
from typing import TYPE_CHECKING
|
|
11
11
|
from urllib.parse import quote as urlquote
|
|
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
|