CallIdConfig

A configuration for CallId plugin.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

If set to true, adds a default generator that uses current CoroutineContext to retrieve a call ID.

Functions

Link copied to clipboard
fun addToHeader(header: String = HttpHeaders.XRequestId)

Adds a call ID to specified header named header.

Link copied to clipboard
fun generate(block: suspend (HttpRequestBuilder) -> String?)

Allows you to generate a call ID for an outgoing request. Generates null if it is impossible to generate a call ID for some reason. You can add multiple generators, and the first non-null value will be used.

Link copied to clipboard

Allows you to add a call ID to the request.