get

open suspend override fun <T> get(url: String, headers: Map<String, String>, handle: suspend (HttpResponse) -> T): T(source)

Performs a GET of url with headers (for example Range) and passes the response to handle. The response is only valid inside handle; it is closed when handle returns.

Throws

on network errors (retried by the downloader).