Request Transformer Advanced

Enterprise only

Replace the URI using capturing groupsv1.0+

Configure the plugin to replace the request URI using a capture group in the original URI before proxying the request to the upstream server.

Prerequisites

  • You have configure a route with the path ~/(?<status>\d+)

Set up the plugin

Add this section to your kong.yaml configuration file:

_format_version: "3.0"
plugins:
  - name: request-transformer-advanced
    config:
      replace:
        uri: /status/\$(uri_captures["status"])
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!