Function redirect_permanent

Source
pub fn redirect_permanent(is_js_req: bool, location: &str) -> Response
Expand description

Redirect helper for 308 (Permanent Redirect, preserves method). If X-CollectiveToolbox-IsJsRequest header is present, returns JSON with target URL and X-CollectiveToolbox-IsJsRedirect response header.