krakend-request-body-modifier

command module
v0.0.0-...-3ffe223 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 7 Imported by: 0

README

requestBody.Modifier for Krakend

This plugin allows you to modify the request body before sending it to the backend.

Usage

If you have krakend installed, you can use the following command to create the plugin:

$ go build -buildmode=plugin -o krakend-request-body-modifier.so github.com/shipink/krakend-request-body-modifier

When after the plugin is created, you can use it in your config:

"extra_config": {
    "plugin/req-resp-modifier": {
    "name": [
        "requestBody.Modifier"
    ],
    "requestBody.Modifier": {
        "keys": ["name","language"],
        "values": ["Shipink","Golang"]
        }
    }
}

You can find example in the krakend.json file also.

NOTE: Plugin and krakend should be build with the same environment.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL