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