You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the previous release, the HTTP request type was changed. This release moves the request type added by that release into aws_smithy_runtime_api::http, and also adds a new response type with similar changes:
Headers are restricted to valid UTF-8 strings. This means that returned values are strings, so conversion into bytes is no longer necessary
If you need to produce an http = 0.2 Response from the Smithy Response, use into_http02x()
A http::Response can be converted to a Smithy Response using its TryFrom implementation
The response type in the InterceptorContext is now HttpResponse instead of http::Response<SdkBody>
⚠️Note for smithy-rs servers: requests are now converted to this Smithy Request type before deserialization, so requests with any header that has invalid UTF-8 (even if that header is unused) will be rejected. Previously, rejection occurred when the header value was read during deserialization.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the previous release, the HTTP request type was changed. This release moves the request type added by that release into
aws_smithy_runtime_api::http
, and also adds a new response type with similar changes:Response
, useinto_http02x()
http::Response
can be converted to a SmithyResponse
using itsTryFrom
implementationInterceptorContext
is nowHttpResponse
instead ofhttp::Response<SdkBody>
Request
type before deserialization, so requests with any header that has invalid UTF-8 (even if that header is unused) will be rejected. Previously, rejection occurred when the header value was read during deserialization.Beta Was this translation helpful? Give feedback.
All reactions