Skip to main content

Module proxy_rewrite

Module proxy_rewrite 

Source
Expand description

The proxy-rewrite node โ€” rewrites the request path and adds/removes headers on either the request or the response, depending on phase.

Structsยง

ProxyRewritePlugin
Mutates either Context.request or Context.response (selected by phase): strips/adds a path prefix and adds/removes headers. Path rewriting only applies in the request phase; header names are lowercased before being applied. This plugin never fails at execution time.

Enumsยง

RewritePhase ๐Ÿ”’
Which side of the exchange the rewrite applies to.

Functionsยง

header_value_to_string ๐Ÿ”’
Stringifies a scalar header value (string, number, or bool); returns None for non-scalar shapes so callers can reject them at config load.
parse_add_headers ๐Ÿ”’
Accepts both config shapes for add_headers: