class HttpRedirect
HttpClient feature that handles http redirect
companion object Feature : HttpClientFeature<HttpRedirect, HttpRedirect> |
HttpRedirect()
HttpClient feature that handles http redirect |
var allowHttpsDowngrade: Boolean
|
|
var checkHttpMethod: Boolean
Check if the HTTP method is allowed for redirect. Only HttpMethod.Get and HttpMethod.Head is allowed for implicit redirect. |
val key: AttributeKey<HttpRedirect>
The AttributeKey for this feature. |
fun install(feature: HttpRedirect, scope: HttpClient): Unit
Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: HttpRedirect.() -> Unit): HttpRedirect
Builds a TFeature by calling the block with a TConfig config instance as receiver. |