Rust SDK 0.8.1
Added
- Added a
OpenError::DictionaryDoesNotExisterror variant, which identifies when a dictionary couldn't be found. - Added
Dictionary::try_open(), which returns aResult<Dictionary, OpenError>, allowing programs to explicitly handle open failures. - Added automatic gzip decompression for backend responses; see
Request::set_auto_decompress_gzip(). - Added
Request::get_query_parameter()for easy access to individual query parameter strings. - Added
get_ttl()andget_stale_while_revalidate()accessors forCacheOverride.
Changed
- Renamed
with_body_bytes()andset_body_bytes()methods towith_body_octet_stream()andset_body_octet_stream()to emphasize that they modify theContent-Typeof the request or response. The original names are still present, but deprecated. - When reading from an HTTP body, an unexpected EOF (e.g., if a backend disconnects) results in an appropriately-tagged
std::io::Errorrather than the generic"fastly_http_body::read failed".
Fixed
- Panics caused when request limits are exceeded in
Request::from_client()or the#[fastly::main]macro now log a more informative error message; previously it was reported aspanicked at 'explicit panic'.
Prior change: Rust SDK 0.8.0
Following change: Rust SDK 0.8.2