Skip to content

invoke

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.functions/FluxbaseFunctions/invoke

[jvm]
inline suspend fun <reified T> invoke(name: String, body: Any? = null, method: String = "POST", namespace: String? = null, headers: Map<String, String> = emptyMap()): FluxbaseResponse<T>

Invoke an edge function. Port of invoke() in functions.ts:77.

jvm

name the function name.
body the request body (any JSON-serializable value, or null for GET/DELETE).
method the HTTP method (default POST).
namespace optional Fluxbase namespace (added as ?namespace= query param).
headers per-request headers.