Rust SDK 0.11.0
- New HTTP caching APIs, including
set_cache_key
,set_before_send
, andset_after_send
onRequest
. These allow for deep customization of caching behavior. Theset_after_send
method in particular sets up a callback to be invoked after receiving a backend response, but before caching it -- allowing cache configuration to be driven by the response data, and for the response to be modified prior to caching. - As part of that new caching API, caching hews a bit closer to the HTTP spec.
Where previously a response containing the string
private
orno-store
anywhere in the relevant cache control header would not be cached, the new API looks forprivate
andno-store
as standalone entries in the header, which is the more typical behavior. The previous behavior can be emulated by using the newset_after_send
hook. - Refactored internals to reduce unnecessary copying. This required one minor
public API change, to
Request::get_url_mut
, which now returns a smart pointer rather than a direct&mut
reference. inspect
and related types have been been moved from theexperimental
module tosecurity
- KV store API overhaul, which includes new builder-style APIs with a much richer set of options
- Further improvements for lazily loading and cloning HTTP headers
Prior change: Fastly Terraform Provider 5.14.0
Following change: JavaScript SDK 3.24.0