Rust SDK 0.7.0
Added
- Added
with_body_text_plain(),set_body_text_plain(),with_body_text_html(),set_body_text_html()convenience methods which set the body contents along with their respective content types. - Added
Response::see_other,Response::redirect, andResponse::temporary_redirectbuilders to support building a redirect response and itsLocationheader all at once. - Added
SendError::root_causeandSendErrorCauseto describe specific upstream request failure causes.
Deprecated
- Deprecated
with_body_str()andset_body_str()methods in favor ofwith_body_text_plain()andset_body_text_plain().
Changed
RequestHandle::send,RequestHandle::send_async, andRequestandle::send_async_streamingnow return a specificSendErrorCauseon errors, replacing ananyhow::Error.select_handlesnow returns a specificSendErrorCauseon errors, replacing ananyhow::Error.PendingRequestHandle::pollandPendingRequestHandle::waitnow return a specificSendErrorCauseon errors, replacing ananyhow::Error.
Prior change: Rust SDK 0.6.0
Following change: Rust SDK 0.7.1