RequestHandler

fun interface RequestHandler(source)

A handler that modifies outgoing requests and optionally handles authentication on 401s.

Functions

Link copied to clipboard

If this returns true, handleAuthentication must be implemented.

Link copied to clipboard
open suspend fun handleAuthentication(client: HttpClient, url: URL, data: Any?, options: ClientRequestArgs): HttpResponse

Will not be called unless canHandleAuthentication is true.

Link copied to clipboard
abstract fun ClientRequestArgs.prepareRequest(headers: MutableHeaders)

Modify an outgoing request.

Inheritors

Link copied to clipboard