Struct FollowRedirectLayer
pub struct FollowRedirectLayer<P = Standard> { /* private fields */ }
Layer for retrying requests with a Service to follow redirection responses.
See the module docs for more details.
Implementations
impl FollowRedirectLayer
fn new() -> SelfCreate a new
FollowRedirectLayerwith aStandardredirection policy.
impl<P> FollowRedirectLayer<P>
fn with_policy(policy: P) -> SelfCreate a new
FollowRedirectLayerwith the given redirectionPolicy.
Trait Implementations
impl<P: Clone> Clone for FollowRedirectLayer<P>
fn clone(&self) -> Self
impl<P: Copy> Copy for FollowRedirectLayer<P>
impl<P: Debug> Debug for FollowRedirectLayer<P>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<P: Default> Default for FollowRedirectLayer<P>
fn default() -> Self
impl<S, P> Layer<S> for FollowRedirectLayer<P>
where
S: Clone,
P: Clone,
type Service = FollowRedirect<S, P>;fn layer(&self, inner: S) -> Self::Service