ManifestFetcher

fun interface ManifestFetcher

Fetches the raw manifest response for a URL. Injected so HttpManifestSource can be unit-tested without real networking; the default is OkHttpManifestFetcher.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun fetch(url: String, headers: Map<String, String>): FetchedManifest

Return the response for url (sending headers); throw on transport or non-2xx HTTP error.