Skip to main content

redirect_external

Function redirect_external 

Source
pub fn redirect_external(url: &str) -> Result<Response<Body>, SlabError>
Expand description

Emit an explicit 303 See Other redirect to an external http:// or https:// URL.

Rejects non-HTTP(S) schemes (such as javascript:, data:, or relative paths) and any URL containing ASCII control characters (< 0x20 or 0x7F).