Skip to content

syhily/header-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  1. 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"

  1. 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.

About

A simple plugin for kong, modify request header

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages