Package-level declarations

Types

Link copied to clipboard
typealias HttpRequestOverride = HttpRequestBuilder.() -> Unit

A function that can be used to override the default request configuration

Link copied to clipboard
class KtorSupabaseHttpClient(supabaseKey: String, modifiers: List<HttpClientConfig<*>.() -> Unit> = listOf(), requestTimeout: Long, engine: HttpClientEngine? = null, osInformation: OSInformation?) : SupabaseHttpClient

A SupabaseHttpClient that uses ktor to send requests

Link copied to clipboard
open class SupabaseApi(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, val supabaseClient: SupabaseClient) : SupabaseHttpClient
Link copied to clipboard
abstract class SupabaseHttpClient

The base HttpClients used by all main plugins

Functions

Link copied to clipboard

Creates a SupabaseApi for the given plugin All requests will be resolved using the MainPlugin.resolveUrl function

fun SupabaseClient.supabaseApi(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null): SupabaseApi

Creates a SupabaseApi with the given resolveUrl function All requests will be resolved using this function

fun SupabaseClient.supabaseApi(baseUrl: String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null): SupabaseApi

Creates a SupabaseApi with the given baseUrl All requests will be resolved relative to this url