Tyk v2.2 Documentation Components

  1. Home
  2. Tyk v2.2 Documentation Components
  3. Request method transform

Request method transform

It is now possible, as of Tyk Gateway v2.2, to change the method of a request. To enable, add to your extended paths:

method_transforms: [
          path: "post",
          method: "GET",
          to_method: "POST"

Note: This feature is very simple at the moment, and only changes the type of method, it does not handle the message data of the request body. However, a combination of method transform, context variables and body transformations can be used to achieve a similar effect.

Using the dashboard

To do this in the dashboard, visit the endpoint designer and select method transform from the plugins drop down for the path you wish to target.