header-transfer

Header transfer for kong

$ luarocks install header-transfer

A simple plugin for kong.

Remove specific request's header and transfer it to your request body.

Usage

1. luarocks install header-transfer
2. Edit your kong.yml configuration file, add a item below your custom_plugins. You may need unquote it first.

custom_plugins:
- header-transfer

3. Add the header-transfer plugin to your api.

curl -X POST http://nyan.ameho.me:8001/apis/<your api id>/plugins --data "name=header-transfer" --data "config.head_to_body=a_header:some_value, another_header:some_value"

4. The header your specificed in your configuration would be transfer to your request body accounding to your request method.

HTTP GET would be your queryString, HTTP POST would be x-form-url-encoded.

Versions

0.0.2-18 years ago(revision: 3)327 downloads
0.0.2-08 years ago52 downloads
0.0.1-08 years ago31 downloads

Manifests