CustomUserAgentMetadata

class CustomUserAgentMetadata(extras: Map<String, String> = mapOf(), typedExtras: List<TypedUserAgentMetadata> = listOf())

Operation context element for adding additional metadata to the User-Agent header string.

Access via extension property ExecutionContext.customUserAgentMetadata

Constructors

Link copied to clipboard
constructor(extras: Map<String, String> = mapOf(), typedExtras: List<TypedUserAgentMetadata> = listOf())

Functions

Link copied to clipboard
fun add(key: String, value: String)

Add additional key-value pairs of metadata to the request. These will show up as md/key#value when sent.

Link copied to clipboard