get
suspend fun get(resource: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)
Deprecated
DO NOT IGNORE. Please change to `getBytes` instead. This method will be modified soon in a backwards incompatible way, in order to support additional cases that the current form doesn't support.
Replace with
getBytes(resource, headers, redirect, abortController)Content copied to clipboard
Call GET on a target resource.
See also tryGet, which will return null if the request fails for any reason.