pub struct HttpRedirect(/* private fields */);Expand description
A reusable HTTP redirect handled by the transport.
A transport that supports this extension may return it with a response after following redirects. Services can copy it into later request extensions to reuse that destination while keeping the original request URI for diagnostics. The transport must send to the destination and apply its redirect credential policy, including credentials supplied by client defaults.
The destination retains its original and redacted representations in
HttpUri. Only the transport should use the original as a request URI.
Services may inspect it to determine whether reuse is valid, but must use
the redacted representation for diagnostics. This extension alone does not
establish that the original path still selects the same object. Transports
that do not support reusable redirects must not return it.
Implementations§
Trait Implementations§
Source§impl Clone for HttpRedirect
impl Clone for HttpRedirect
Source§fn clone(&self) -> HttpRedirect
fn clone(&self) -> HttpRedirect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more