pub struct RedirectHop<'a> {
pub method: &'a str,
pub url: &'a Url,
pub method_rewritten: bool,
pub body_len: u64,
}Expand description
The request a redirect is about to send.
Fields§
§method: &'a strUpper-cased; GET after a redirect rewrote the original method.
url: &'a Url§method_rewritten: boolA redirect on the way here changed the method to GET and dropped the
body: 301/302 for POST, 303 for every method but GET and HEAD.
body_len: u64Trait Implementations§
Source§impl<'a> Clone for RedirectHop<'a>
impl<'a> Clone for RedirectHop<'a>
impl<'a> Copy for RedirectHop<'a>
Auto Trait Implementations§
impl<'a> Freeze for RedirectHop<'a>
impl<'a> RefUnwindSafe for RedirectHop<'a>
impl<'a> Send for RedirectHop<'a>
impl<'a> Sync for RedirectHop<'a>
impl<'a> Unpin for RedirectHop<'a>
impl<'a> UnsafeUnpin for RedirectHop<'a>
impl<'a> UnwindSafe for RedirectHop<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more