Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsRequest Headers Transform: GUI

Request Headers Transform: GUI

To inject new headers into a request using the GUI, you must make the edits in the Endpoint Designer section of your API Definition.

Step 1: Add an Endpoint and select the Modify Headers option

You must also set a method and a request pattern to match against. These patterns can contain wildcards in the form of any string bracketed by curly braces. These wildcards are so they are human readable and do not translate to variable names. Under the hood, a wildcard translates to the “match everything” regex of: (.*).

Endpoint designer

Step 2: Select the “Request” tab

This ensures that this will only be applied to inbound requests.

Request tab

Step 3: Setup header transforms

Select set the headers to delete and insert using the provided fields.

Important: Remember to press the “+” button to ensure they are added to the list.

Header transforms

Step 4: Save the API

Once the API is saved, if a request path and method matches your pattern, then the relevant modifications will be made to the request that hits your endpoint.

Was this article helpful to you? Yes No