HTTP Transformations/Request
policies/http_transformations/request[]
This node defines the transformations which will take place on requests. This entry is an array and can be used to specify multiple transformations.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
name | string | The name which is associated with this transformation. | |
host | string | The host (obtained from the host header in the request) for which this transformation will take place. If no host header is specified all hosts will be matched. | |
paths | Array of string | The paths for which this transformation will take place. If the wildcard "*" is specified all paths will be matched. This entry is an array and can be used to specify multiple paths. | |
method | string | The HTTP method for which this transformation will take place. If the wildcard "*" is specified all methods will be matched. | |
rule | string | The HTTP transformation rule. |
Example
policies:
http_transformations:
request:
- name: resource_1_rule
host: www.test.com
paths:
- "*"
method: GET
rule: "@http_trans_rule.lua"
Updated about 1 year ago