For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Transformations
Mutate and transform requests and responses before forwarding them to the destination.
Known limitations
Gateway-level policy in 2.1.x or later: This feature is available in kgateway version 2.1.x or later. If you use version 2.1 or later, you can select the Gateway in the targetRefs field of the TrafficPolicy. Remember that you can configure route-specific transformations by creating another TrafficPolicy with the targetRefs field set to the specific HTTPRoute. The HTTPRoute-level policy takes precedence over the Gateway-level policy.
Transformation engine
Learn how the rustformation engine processes TrafficPolicy transformations and migrate templates …
Templating language
Inject response headers
Extract values from a request header and inject it as a header to your response.
Decode base64 headers
Automatically decode base64 values in request headers and add the decoded value as a response …
Update request paths and methods
Change the request path and HTTP method when a request header is present.
Create redirect URLs
Change response status
Update the response status based on headers being present in a response.
Update response body
Learn how to return a customized response body and how replace specific values in the body.