Expand description
The redirect node — answers the request with an HTTP redirect instead of
proxying it upstream.
Port of APISIX’s redirect plugin (the uri and http_to_https modes;
APISIX’s regex_uri and encode_uri are not implemented, and
http_to_https always redirects to the default HTTPS port — there is no
https_port plugin attribute).
Redirecting stops the pipeline in featherbit terms: the plugin fills in
context.response (status + location) and exits through the dedicated
redirect output port, so the node’s redirect edge should go straight
to client.in — not through an upstream node, which would overwrite
the response. Requests that don’t redirect (the http_to_https
already-secure passthrough) continue on success.
Structs§
- Redirect
Plugin - Builds a redirect response from either a
uritemplate (with{{namespace.path}}references plus legacy$varinterpolation) or thehttp_to_httpsshortcut.