getBytes
suspend fun getBytes(resource: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)
Call GET on a target resource, returning the response body as a raw array of bytes.
See also tryGetBytes, which will return null if the request fails for any reason.