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_redirect
builders to support building a redirect response and itsLocation
header all at once. - Added
SendError::root_cause
andSendErrorCause
to 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_streaming
now return a specificSendErrorCause
on errors, replacing ananyhow::Error
.select_handles
now returns a specificSendErrorCause
on errors, replacing ananyhow::Error
.PendingRequestHandle::poll
andPendingRequestHandle::wait
now return a specificSendErrorCause
on errors, replacing ananyhow::Error
.
Prior change: AssemblyScript SDK 0.2.1
Following change: Fastly Terraform Provider 0.26.0