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

commonMain.com.seiko.imageloader.model.Option.ktor.kt Maven / Gradle / Ivy

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

import com.seiko.imageloader.option.Options
import com.seiko.imageloader.option.OptionsBuilder

fun OptionsBuilder.ktorRequest(block: KtorRequestDataBuilder.() -> Unit) {
    extra {
        set(KEY_KTOR_REQUEST_DATA, KtorRequestData(block))
    }
}

internal val Options.ktorRequestData: KtorRequestData?
    get() = extra[KEY_KTOR_REQUEST_DATA] as? KtorRequestData

private const val KEY_KTOR_REQUEST_DATA = "KEY_KTOR_REQUEST_DATA"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy