All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.seiko.imageloader.component.SetupKtorComponents.kt Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
package com.seiko.imageloader.component

import com.seiko.imageloader.component.fetcher.KtorUrlFetcher
import com.seiko.imageloader.component.keyer.KtorUrlKeyer
import com.seiko.imageloader.component.mapper.KtorUrlMapper
import io.ktor.client.HttpClient

fun ComponentRegistryBuilder.setupKtorComponents(
    httpClient: () -> HttpClient = KtorUrlFetcher.defaultHttpEngineFactory,
) {
    add(KtorUrlMapper())
    add(KtorUrlKeyer())
    add(KtorUrlFetcher.Factory(httpClient))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy