Kong Functions (Pre-Plugins)

Pass Lua code as string

You can pass Lua code as a string to the Pre-Function plugin.

In this example, the plugin will run in the access phase to overwrite the connect timeout to the upstream service.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!