Skip to content

getBytes

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.core/FluxbaseHttpClient/getBytes

[jvm]
suspend fun getBytes(path: String, headers: Map<String, String> = emptyMap()): ByteArray

GET path and return the response body as raw bytes — the binary-safe path (no charset decode). Used by storage downloads and any other non-text payload. Mirrors getBlob in sdk/src/fetch.ts.