Package-level declarations
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.core
Package-level declarations
Section titled “Package-level declarations”| Name | Summary |
|---|---|
| FluxbaseException | [jvm] class FluxbaseException(val status: Int, val code: String? = null, val details: Any? = null, message: String) : RuntimeException A Fluxbase API error. Mirrors FluxbaseError from sdk/src/types.ts:235. |
| FluxbaseHttpClient | [jvm] class FluxbaseHttpClient(baseUrl: String, transport: HttpTransport, json: Json = defaultJson) The shared HTTP client that every Fluxbase module (auth, postgrest, realtime, storage, jobs, …) uses to talk to the Fluxbase server. This is the Kotlin port of FluxbaseFetch (sdk/src/fetch.ts). |
| HttpMethod | [jvm] enum class HttpMethod : Enum<HttpMethod> HTTP method enum used by the SDK’s client layer. (Distinct from Ktor’s HttpMethod to avoid naming clashes in the transport.) |
| HttpResponse | [jvm] data class HttpResponse(val body: String, val status: Int, val headers: Map<String, String>) A raw HTTP response: the body as text plus the status code and response headers. |
| HttpTransport | [jvm] interface HttpTransport SPI for the actual HTTP I/O. The SDK’s FluxbaseHttpClient delegates all wire calls to this interface, which has a production implementation (Ktor-backed, for JVM/Android) and is the seam used by tests: io.github.nimbleflux.fluxbase.core.test.RecordingHttp is a fake that records requests instead of sending them. |
| KtorHttpTransport | [jvm] class KtorHttpTransport(baseUrl: String, json: Json = FluxbaseHttpClient.defaultJson, timeoutMillis: Long, trustAllCertificates: Boolean = false) : HttpTransport Ktor-backed HttpTransport — the production HTTP implementation for JVM/Android. |