OkHttpManifestFetcher

class OkHttpManifestFetcher(client: OkHttpClient = defaultClient()) : ManifestFetcher

OkHttp-backed ManifestFetcher. The blocking call runs on Dispatchers.IO.

Constructors

Link copied to clipboard
constructor(client: OkHttpClient = defaultClient())

Types

Link copied to clipboard
object Companion

Defaults of the OkHttp client the fetcher builds when none is supplied.

Functions

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

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