Skip to main content

redirect

Function redirect 

Source
pub fn redirect(to: impl Into<String>) -> Rejection
Expand description

Shorthand for Rejection::Redirect(Redirect::to(to)). See Redirect for how it updates the history.