add / append / remove static headers and body data to the response that is sent from upstream backend server to the client 00:00 intro 01:00 how response transformer plugin work in kong 02:43 available configurations on response transformer plugin 04:01 docker-compose file to setup kong in decalrative mode 05:56 kong configuration to enable response transformer plugin 09:17 start kong api gateway with response transformer plugin as a docker container 13:04 outro
@aniketmaurya3844 Жыл бұрын
OP
@nishanthsingh87452 ай бұрын
As per the documentation and this video, i was able to add a static header in the response. How do we add the dynamic headers which are a part of the request to the response header. For example, we can add dynamic request headers using x-custom-request:$(headers.request) using request transformer plugin. But when the same is configured in response transformer plugin, it gives a static value (string)
@BacemS7 ай бұрын
Thank you for sharing. I have a question: can we use the "response transformer" plugin to modify the upstream response body based on a condition? For example, if it's a GET request, I modify the body; otherwise, I do nothing. If not, what other plugin could do this? Thanks.