ktor-client-core / io.ktor.client.features / HttpRedirect / Feature

Feature

companion object Feature : HttpClientFeature<HttpRedirect, HttpRedirect>

Companion Object Properties

key

val key: AttributeKey<HttpRedirect>

The AttributeKey for this feature.

Companion Object Functions

install

fun install(feature: HttpRedirect, scope: HttpClient): Unit

Installs the feature class for a HttpClient defined at scope.

prepare

fun prepare(block: HttpRedirect.() -> Unit): HttpRedirect

Builds a TFeature by calling the block with a TConfig config instance as receiver.