I have a challange that I can’t get to work. I want a value that is send in the header added to the destination url. I try the REQUEST TRANSFORMER only it’s not working with the $(headers.header-name) or $(headers.[“header-name”]) actions. Any idea how to get this working or only possible by custom extension?
@janjaap Are you able to use header based routing to solve your needs instead of rewriting urls? The routes entity supports a headers field which will match headers and which you can attach to a service.
@rick Hi Rick, thank you for replying, so the problem is not the rout the problem is de destination. The client send a message to kong with a path /test/ or something and some specific data in a header. The message needs to be send to a destination where they require a url like: /test/$HeaderValue so I need to some how change the route path or destination url.
@rick Found out that this is only possible to do on the route not on the service. So by changing the uri in the route the data from the service is ignored.