DefaultHeadersConfig

class DefaultHeadersConfig

A configuration for the DefaultHeaders plugin. Allows you to configure additional default headers.

Constructors

Link copied to clipboard
fun DefaultHeadersConfig()

Types

Link copied to clipboard
fun interface Clock

Utility interface for obtaining timestamp.

Functions

Link copied to clipboard
fun header(name: String, value: String)

Adds a standard header with the specified name and value.

Properties

Link copied to clipboard
var clock: DefaultHeadersConfig.Clock

Provides a time source. Useful for testing.