Rust SDK 0.11.0
- New HTTP caching APIs, including
set_cache_key,set_before_send, andset_after_sendonRequest. These allow for deep customization of caching behavior. Theset_after_sendmethod 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
privateorno-storeanywhere in the relevant cache control header would not be cached, the new API looks forprivateandno-storeas standalone entries in the header, which is the more typical behavior. The previous behavior can be emulated by using the newset_after_sendhook. - 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&mutreference. inspectand related types have been been moved from theexperimentalmodule 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: Rust SDK 0.10.5
Following change: Rust SDK 0.11.1