Rust SDK 0.7.0

rust-sdkchangeddeprecatedadded

This is not the latest release. View the archived snapshot of the full documentation as it was at this release, or view the latest documentation.


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, and Response::temporary_redirect builders to support building a redirect response and its Location header all at once.
  • Added SendError::root_cause and SendErrorCause to describe specific upstream request failure causes.

Deprecated

  • Deprecated with_body_str() and set_body_str() methods in favor of with_body_text_plain() and set_body_text_plain().

Changed

  • RequestHandle::send, RequestHandle::send_async, and Requestandle::send_async_streaming now return a specific SendErrorCause on errors, replacing an anyhow::Error.
  • select_handles now returns a specific SendErrorCause on errors, replacing an anyhow::Error.
  • PendingRequestHandle::poll and PendingRequestHandle::wait now return a specific SendErrorCause on errors, replacing an anyhow::Error.

Prior change: February 2021 VCL release ("Pakora")

Following change: CLI v0.25.0