Expand description
Azure Functions serverless-upstream plugin (azure-functions).
Port of APISIX’s azure-functions plugin (3.17). Forwards the request to an
Azure Function 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 is via the Azure function key headers: authorization.apikey
is sent as x-functions-key and authorization.clientid as
x-functions-clientid (only when the client did not already supply them).
On a callout failure the node rejects through its error port with
AZURE_FUNCTIONS_CALLOUT_ERROR (a 502/503/504 depending on the failure).
§Deviations from APISIX
- The
plugin_metadatamaster-key fallback is not implemented; keys come from the node’sauthorizationblock only.
Structs§
- Azure
Functions Plugin - Forwards the request to an Azure Function and maps its reply into
Context.response.
Functions§
- apply_
response 🔒 - Copies the FaaS reply into
Context.response. - reject 🔒
- Builds the
AZURE_FUNCTIONS_CALLOUT_ERRORrejection carrying the context.