Skip to main content

Module azure_functions

Module azure_functions 

Source
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_metadata master-key fallback is not implemented; keys come from the node’s authorization block only.

Structs§

AzureFunctionsPlugin
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_ERROR rejection carrying the context.