How to use Request Transformer plugin?

Hi, I did not see any good site to understand this plugin. I have a case where my upstream URL is the host name and I want to append {value_parameter}/fixed_string. I want to pass the value parameter in the header and not in the form of url. How do I do this?

get call to,
xyz.com/:customer_id/data/sub_data – Example for my case

xyz.com – Upstream URL

I want to pass customer id in parameter form.

Can anyone help me with this case? Thank you.

Hi, the Request Transformer plugin can not be used in the way you are describing: it can add and remove headers, but not transform pieces of url into headers.

In order to do that, you would have to write your own custom plugin, and do the transformation using Lua code. If you decide to go this route, you should give a look at the plugin development guide: