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
This week primarily contains bug fixes and internal changes to the request pipeline. Although many of these changes are breaking, we don't anticipate that many customers will be impacted.
(Remove generic body from ParseHttpResponse #626) ParseHttpResponse no longer has a generic argument for the body type, but instead, always uses SdkBody. This may cause compilation failures for you if you are using Smithy generated types to parse JSON or XML without using a client to request data from a service. The fix should be as simple as removing <SdkBody> in the example below:
Before:
let output = <QueryasParseHttpResponse<SdkBody>>::parse_loaded(&parser,&response).unwrap();
After:
let output = <QueryasParseHttpResponse>::parse_loaded(&parser,&response).unwrap();
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
Uh oh!
There was an error while loading. Please reload this page.
-
v0.20 (August 10th, 2021)
This week primarily contains bug fixes and internal changes to the request pipeline. Although many of these changes are breaking, we don't anticipate that many customers will be impacted.
Breaking changes
(Refactor middleware to use new
operation::Responseinstead ofhttp::Response<SdkBody>#635) Theconfig(),config_mut(),request(), andrequest_mut()methods onoperation::Requesthave been renamed toproperties(),properties_mut(),http(), andhttp_mut()respectively.(Refactor middleware to use new
operation::Responseinstead ofhttp::Response<SdkBody>#635) TheResponsetype on Tower middleware has been changed fromhttp::Response<SdkBody>tooperation::Response. The HTTP response is still available from theoperation::Responseusing itshttp()andhttp_mut()methods.(Refactor middleware to use new
operation::Responseinstead ofhttp::Response<SdkBody>#635) TheParseHttpResponsetrait'sparse_unloaded()method now takes anoperation::Responserather than anhttp::Response<SdkBody>.(Remove generic body from
ParseHttpResponse#626)ParseHttpResponseno longer has a generic argument for the body type, but instead, always usesSdkBody. This may cause compilation failures for you if you are using Smithy generated types to parse JSON or XML without using a client to request data from a service. The fix should be as simple as removing<SdkBody>in the example below:Before:
After:
New This Week
async_provide_credentials_fncan now borrow values (Allow the closure passed toasync_provide_credentials_fnto borrow #637)Sender/Receiverimplementations for Event Stream (Implement Event Stream Sender/Receiver for use in generated types #639)This discussion was created from the release v0.20 (August 10th, 2021).
Beta Was this translation helpful? Give feedback.
All reactions