Rust SDK 0.10.0
Changed
- Updated
httpcrate to 1.1.0, which changes some of the types re-exported from this crate such asfastly::http::HeaderValue. If your application has an explicit dependency on thehttpcrate, you may need to update that dependency as well in order to interact with thefastlycrate. - Usage of the
handoff_websocketandhandoff_fanoutmethods onRequestandRequestHandleis no longer considered experimental. TheRequestUpgradeWebsocketandRequestHandleUpgradeWebsockettraits are no longer required to use these functions, and the trait methods have been marked as deprecated. - Conversion functions between low-level handles and
RequestandResponseno longer return errors following the removal of thelimitsmodule. Response::with_header()has been changed to have appending behavior rather than set behavior. As a result, chained invocations ofwith_header()will add multiple values for the same header to the response, just likeResponse::append_header(). Users that prefer the old behavior should useResponse::with_set_header(), instead.
Deprecated
- Deprecated
write_bytes()andwrite_str()methods onBodyandStreamingBodyin favor ofstd::io::Writemethods.
Removed
- Removed the previously-deprecated
limitsmodule. Fastly's network services resource limits do and will continue to apply. - Removed
Request::try_from_client(), which is no longer useful following the removal of thelimitsmodule. - Removed the previously-deprecated Object Store items that have been renamed to KV Store.
- Removed the previously-deprecated
TransactionUpdateBuilder::sensitive_data()method. - Removed several previously-deprecated variants of
SendErrorCausein favor of new, more-specific variants. - Removed the previously-deprecated
BackendExt::builder()trait method in favor of theBackend::builder()method. - Removed the previously-deprecated
write_bytes()andwrite_str()methods forBodyHandleandStreamingBodyHandlein favor ofstd::io::Writemethods.
Prior change: Rust SDK 0.9.12
Following change: Rust SDK 0.10.1