Rust SDK 0.2.0-alpha3
Added
Added
request::downstream_tls_cipher_openssl_name()
andrequest::downstream_tls_protocol()
to get basic TLS metadata for the downstream client request. These functions both return strings for the moment, but we will be evolving to more structured metadata in future releases.Added some checks to make sure backend requests are sent with complete URIs and valid backend names, returning with an error before trying to send if validation fails. Previously, this would fail outside of the WebAssembly program, making debugging more obscure.
Added a
FromStr
implementation forBackend
, allowing them to beparse
d directly from a string. For example:
let backend = "exampleOrigin".parse::<Backend>().unwrap();
Changed
- Changed from blanket
RequestExt
andResponseExt
implementations forAsRef<[u8]>
to implementations on specific concrete types. This includes a new implementation for()
to represent an empty body, as well as all of the "stringy" types from the standard library likeString
,&str
,Vec<u8>
, and&[u8]
.
Prior change: CLI v0.3.0
Following change: CLI v0.4.0