tryHead

inline suspend fun <R> HttpFetcher.tryHead(resource: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null, responseDeserializer: DeserializationStrategy<R> = serializer()): R?(source)

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

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