pub struct RedirectHandler;Implementations§
Source§impl RedirectHandler
impl RedirectHandler
pub fn should_follow_redirect( status_code: u16, _method: &str, current_redirects: usize, max_redirects: usize, ) -> Option<RedirectAction>
pub fn resolve_redirect_url( current_url: &str, location: &str, ) -> Result<String, String>
pub fn sanitize_redirect_url(url: &str) -> Result<String, String>
Auto Trait Implementations§
impl Freeze for RedirectHandler
impl RefUnwindSafe for RedirectHandler
impl Send for RedirectHandler
impl Sync for RedirectHandler
impl Unpin for RedirectHandler
impl UnsafeUnpin for RedirectHandler
impl UnwindSafe for RedirectHandler
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