deleteBytes
suspend fun deleteBytes(resource: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)
Deprecated
We are phasing out the *Bytes version of network requests, now that we have new versions that return `Response` objects directly.
Replace with
import com.varabyte.kobweb.browser.http.FetchDefaults
import com.varabyte.kobweb.browser.http.bodyAsBytes
Content copied to clipboard
delete(resource, headers, redirect, abortController).bodyAsBytes()Content copied to clipboard
Call DELETE on a target resource, returning the response body as a raw array of bytes.
See also tryDeleteBytes, which will return null if the request fails.