Skip to main content

redirect

Function redirect 

Source
fn redirect(
    ctx: Context,
    location: &str,
    set_cookies: Vec<String>,
) -> Result<PluginOutput, PluginExecutionError>
Expand description

Prepares a 302 redirect on the context and exits through the error port (the node’s error edge should be wired to client.in).