Skip to content

Instantly share code, notes, and snippets.

@DanukaPraneeth
Created August 2, 2020 15:50
Show Gist options
  • Save DanukaPraneeth/144816ff6daf89400df71bd34cc1bb5b to your computer and use it in GitHub Desktop.
Save DanukaPraneeth/144816ff6daf89400df71bd34cc1bb5b to your computer and use it in GitHub Desktop.
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: request-transformer
config:
remove:
headers:
- x-toremove
- x-another-one
querystring:
- qs-old-name
body:
- formparam-toremove
- formparam-another-one
rename:
headers:
- header-old-name:header-new-name
- another-old-name:another-new-name
body:
- param-old:param-new
- param2-old:param2-new
add:
headers:
- x-new-header:value
- x-another-header:something
body:
- new-form-param:some_value
- another-form-param:some_value
plugin: request-transformer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment