tryGet

suspend fun tryGet(    resource: String,     headers: Map<String, Any>? = FetchDefaults.Headers,     redirect: RequestRedirect? = FetchDefaults.Redirect,     abortController: AbortController? = null): ByteArray?(source)

Like get, but returns null if the request failed for any reason.

Additionally, if logOnError is set to true, any failure will be logged to the console.