DefaultRequest

class DefaultRequest

Feature is used to set request default parameters.

Types

Feature

companion object Feature : 
    HttpClientFeature<HttpRequestBuilder, DefaultRequest>

Constructors

<init>

DefaultRequest(builder: HttpRequestBuilder.() -> Unit)

Feature is used to set request default parameters.

Companion Object Properties

key

The AttributeKey for this feature.

Companion Object Functions

install

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

Installs the feature class for a HttpClient defined at scope.

prepare

fun prepare(
    block: HttpRequestBuilder.() -> Unit
): DefaultRequest

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