AuthenticatedSupabaseApi

class AuthenticatedSupabaseApi constructor(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, defaultRequest: HttpRequestBuilder.() -> Unit? = null, supabaseClient: SupabaseClient, jwtToken: String? = null) : SupabaseApi(source)

Constructors

Link copied to clipboard
constructor(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, defaultRequest: HttpRequestBuilder.() -> Unit? = null, supabaseClient: SupabaseClient, jwtToken: String? = null)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun delete(url: String, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
inline suspend fun <T> delete(url: String, body: T, contentType: ContentType, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun <T> deleteJson(url: String, body: T, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun get(url: String, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun patch(url: String, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
inline suspend fun <T> patch(url: String, body: T, contentType: ContentType, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun <T> patchJson(url: String, body: T, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun post(url: String, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
inline suspend fun <T> post(url: String, body: T, contentType: ContentType, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun <T> postJson(url: String, body: T, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun prepareRequest(url: String, builder: HttpRequestBuilder.() -> Unit): HttpStatement
suspend fun prepareRequest(builder: HttpRequestBuilder.() -> Unit): HttpStatement
Link copied to clipboard
inline suspend fun put(url: String, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
inline suspend fun <T> put(url: String, body: T, contentType: ContentType, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
inline suspend fun <T> putJson(url: String, body: T, crossinline builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
suspend fun rawRequest(builder: HttpRequestBuilder.() -> Unit): HttpResponse
open suspend override fun rawRequest(url: String, builder: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
suspend override fun request(url: String, builder: HttpRequestBuilder.() -> Unit): HttpResponse