All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.jan.supabase.postgrest.request.SelectRequest.kt Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.github.jan.supabase.postgrest.request

import io.github.jan.supabase.postgrest.query.Count
import io.ktor.http.Headers
import io.ktor.http.HttpMethod

@PublishedApi
 internal class SelectRequest(
    val head: Boolean = false,
    val count: Count? = null,
    override val urlParams: Map,
    override val schema: String,
    override val headers: Headers = Headers.Empty,
): PostgrestRequest {

    override val method = if (head) HttpMethod.Head else HttpMethod.Get
    override val prefer = if (count != null) listOf("count=${count.identifier}") else listOf()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy