Plugin

object Plugin : HttpClientPlugin<HttpRedirect.Config, HttpRedirect>

Functions

Link copied to clipboard
open override fun install(plugin: HttpRedirect, scope: HttpClient)

Installs the plugin class for a HttpClient defined at scope.

Link copied to clipboard
open override fun prepare(block: HttpRedirect.Config.() -> Unit): HttpRedirect

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

Properties

Link copied to clipboard
val HttpResponseRedirect: EventDefinition<HttpResponse>

Occurs when receiving a response with a redirect message.

Link copied to clipboard
open override val key: AttributeKey<HttpRedirect>

The AttributeKey for this plugin.