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 dedicated redirect port (wire the node’s redirect edge to client.in).