Skip to content

FunctionInvokeOptions

Options for invoking an edge function

PropertyTypeDescription
body?anyRequest body to send to the function
headers?Record<string, string>Custom headers to include in the request
method?"GET" | "POST" | "PUT" | "PATCH" | "DELETE"HTTP method to use Default 'POST'
namespace?stringNamespace of the function to invoke If not provided, the first function with the given name is used (alphabetically by namespace)