-
Notifications
You must be signed in to change notification settings - Fork 43
Routing Middlewares
Thiago da Rosa de Bustamante edited this page Mar 27, 2018
·
13 revisions
Tree Gateway provides some pre defined middlewares to support advanced proxy features:
Router | Description |
---|---|
loadBalancer | Support load balancing for the possible targets. |
trafficSplit | Support traffic splitting using weights for the possible targets. |
query | Support route the destination, based on a query parameter in the request. |
header | Support route the destination, based on a header in the request. |
Filter | Description |
---|---|
ipFilter | Support ip filtering using whitelists and blacklists that can be updated from a database. |
Interceptor | Description |
---|---|
requestBodyTransformer | Use jsonata expressions to transform request body. |
responseBodyTransformer | Use jsonata expressions to transform response body. |
requestHeaders | Allow to add / update or remove a request header, before send it to destination. |
responseHeaders | Allow to add / update or remove a response header, before send it to client. |
requestXml | Transform a javascript object (or a json string) in the body of the request to a XML string. |
responseXml | Transform a XML string in the body of the request into a javascript object. |
requestMustache | Use the object in the request body as a parameter to be applied to a mustache template. The result is the new request body. |
responseMustache | Use the object in the response body as a parameter to be applied to a mustache template. The result is the new response body. |
webSecurity | Add some response headers to increase the API security, protecting it from common attacks. |
Middleware | Description |
---|---|
consul | Consult consul registry to find out the target destination for the request. |