SendingRequest
object SendingRequest : ClientHook<suspend (request: HttpRequestBuilder, content: OutgoingContent) -> Unit>
A hook that is executed for every request, even if it's not user initiated. For example, if a request results in redirect, ClientPluginBuilder.onRequest will be executed only for the original request, but this hook will be executed for both original and redirected requests.
Functions
Link copied to clipboard
open override fun install(client: HttpClient, handler: suspend (request: HttpRequestBuilder, content: OutgoingContent) -> Unit)
Specifies how to install a hook into client.