ServerlessServerless Functions
Serverless Functions Configuration
Parameters
See plugin common configurations for configuration options available to all plugins.
-
phase—string· optional · default:accessValid values:
rewrite,access,header_filter,body_filter,log, andbefore_proxyPhase before which the serverless function is executed.
-
functions—array[string]· requiredList of functions that are executed sequentially.
Only Lua functions are allowed and not other Lua code. For example, anonymous functions and closures are legal, whereas other code not in a function will not be allowed. See tips for writing functions for more details.