HttpRedirect
class HttpRedirect
HttpClient feature that handles http redirect
Types
companion object Feature : |
Constructors
HttpRedirect() HttpClient feature that handles http redirect |
Properties
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. |
Companion Object Properties
val key: AttributeKey<HttpRedirect> The AttributeKey for this feature. |
Companion Object Functions
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. |