Skip to main content

Module serverless_post_function

Module serverless_post_function 

Source
Expand description

The serverless-post-function node — runs one or more inline Lua functions against the Context, threading it through each in sequence.

Port of APISIX’s serverless-post-function plugin. It shares all logic with serverless-pre-function via the shared ServerlessRunner; the only difference is the registered node-type name (and, by convention, its placement in the policy graph: after the upstream node rather than before it).

See super::serverless_pre_function for the full documentation of the function contract and the deviations from APISIX (the execute(ctx) contract and phase-by-graph-position).

Structs§

ServerlessPostFunctionPlugin
The serverless-post-function node. Runs its Lua functions after the upstream call (by convention of its graph placement).