Functions
Plugin to interact with the supabase Edge Functions API
To use it you need to install it to the SupabaseClient:
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
install(Functions)
}then you can use it like this:
val response = supabase.functions("myFunction")
//or store it in a variable
val function = supabase.functions.buildEdgeFunction("myFunction")
val response = function()Types
Properties
Functions
Builds an EdgeFunction which can be invoked multiple times
Invokes a remote edge function. The authorization token is automatically added to the request.
Invokes a remote edge function. The authorization token is automatically added to the request. Note, if you want to serialize body to json, you need to add the HttpHeaders.ContentType header yourself.
Invokes a remote edge function that returns Server-Sent Events (SSE) and returns a Flow of FunctionServerSentEvent. Each event provides access to data, event, and id fields, as well as a decodeAs method for deserializing the data payload.
Prepares an invocation of a remote edge function, returning an HttpStatement for streaming or other advanced response handling. The authorization token is automatically added to the request.