Function sharp_pencil::helpers::redirect
source · [−]pub fn redirect(location: &str, code: u16) -> PencilResult
Expand description
Returns a response that redirects the client to the target location.
pub fn redirect(location: &str, code: u16) -> PencilResult
Returns a response that redirects the client to the target location.