supabase-client-functions
Edge Functions client for supabase-client.
Note: This crate is part of the
supabase-client-sdkworkspace. Most users should depend onsupabase-client-sdkwith thefunctionsfeature rather than using this crate directly.
Key Features
SupabaseClientFunctionsExtextension trait — adds.functions()toSupabaseClientFunctionsClient— HTTP client for invoking Supabase Edge Functions (Deno/TypeScript)- JSON, binary, and text request/response bodies
- Custom headers, authorization override, and region routing
set_auth()to update default token for subsequent invocations- Full HTTP method support (GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD)
Usage
use SupabaseClientFunctionsExt;
use InvokeOptions;
use json;
let functions = client.functions?;
let response = functions.invoke.await?;
let data: Value = response.json?;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.