Expand description
OpenFunction serverless-upstream plugin (openfunction).
Port of APISIX’s openfunction plugin (3.17). Forwards the request to an
OpenFunction endpoint and returns the function’s reply as the gateway
response — it replaces the upstream, so the node’s success port should
be wired straight to client.in.
Authorization: when authorization.service_token is set, it is sent as an
Authorization: Basic <base64(service_token)> header (matching APISIX,
which base64-encodes the raw token verbatim).
On a callout failure the node rejects through its error port with
OPENFUNCTION_CALLOUT_ERROR (a 502/503/504 depending on the failure).
Structs§
- Open
Function Plugin - Forwards the request to an OpenFunction endpoint and maps its reply into
Context.response.
Functions§
- apply_
response 🔒 - Copies the FaaS reply into
Context.response. - reject 🔒
- Builds the
OPENFUNCTION_CALLOUT_ERRORrejection carrying the context.