Rust SDK 0.2.0-alpha3
request::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.
Backend, allowing them to be
parsed directly from a string. For example:
let backend = "exampleOrigin".parse::<Backend>().unwrap();
- Changed from blanket
AsRef<[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 like
Prior change: CLI v0.3.0
Following change: CLI v0.4.0