Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsRequest method transform

Request method transform

[As of Tyk Gateway v2.2]

It is now possible to change the method of a request. 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, but a combination of method transform, context variables and body transformations can be used to achieve a similar effect, to enable, add to your extended paths:

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

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.

Was this article helpful to you? Yes No