mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-21 01:55:21 -04:00
ed4dc57067
These constructors don't expose the internal `Bytes` type, but instead will try to downcast the argument to prevent a copy. If the types don't match up (a user provides an older version of `Bytes`), the value will just be copied. Adds: - `HeaderValue::from_maybe_shared` - `HeaderValue::from_maybe_shared_unchecked` - `Uri::from_maybe_shared` - `Authority::from_maybe_shared` - `PathAndQuery::from_maybe_shared`