Package-level declarations

Types

Link copied to clipboard

A hook that can be registered in ClientPluginBuilder.

Link copied to clipboard
Link copied to clipboard

An utility class used to build a ClientPlugin instance.

Link copied to clipboard

An instance of ClientPlugin that can be installed into HttpClient.

Link copied to clipboard

A shortcut hook for HttpClient.monitor subscription.

Link copied to clipboard

A context for ClientPluginBuilder.onRequest callback.

Link copied to clipboard
Link copied to clipboard

A hook that can inspect response and initiate additional requests if needed. Useful for handling redirects, retries, authentication, etc.

Link copied to clipboard
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.

Link copied to clipboard

A hook that executes first in request processing.

Functions

Link copied to clipboard

Creates a ClientPlugin with empty config that can be installed into an HttpClient.

Creates a ClientPlugin that can be installed into an HttpClient.