HeadersSpec

Functions

Link copied to clipboard
abstract infix fun String.onlyTo(value: String)

Sets the header with this name to the given value.

abstract infix fun String.onlyTo(values: List<String>)

Sets the header with this name to the given values.

Link copied to clipboard
abstract infix fun String.onlyToIfAbsent(value: String)

Sets the header with this name to the given value only if there's no header with this name.

abstract infix fun String.onlyToIfAbsent(values: List<String>)

Sets the header with this name to the given values only if there's no header with this name.

Link copied to clipboard
open infix fun <A, B> A.to(that: B): Pair<A, B>
abstract infix fun String.to(value: String)
abstract infix fun String.to(values: List<String>)