KoogleHeadersBuilder

Top-level class that all header builders should extend from.

Parameters

headersBuilder

The Ktor header builder to extend from.

Inheritors

Constructors

Link copied to clipboard
constructor(headersBuilder: HeadersBuilder)

Inherited properties

Link copied to clipboard
open override val caseInsensitiveName: Boolean

Functions

Link copied to clipboard

Applies the headers to the specified defaultRequestBuilder.

fun appendToBuilder(httpRequestBuilder: HttpRequestBuilder)

Applies the headers to the specified httpRequestBuilder.

Link copied to clipboard
open override fun build(): Headers

Inherited functions

Link copied to clipboard
open override fun append(name: String, value: String)
Link copied to clipboard
open override fun appendAll(stringValues: StringValues)
open override fun appendAll(name: String, values: Iterable<String>)
Link copied to clipboard
open override fun appendMissing(stringValues: StringValues)
open override fun appendMissing(name: String, values: Iterable<String>)
Link copied to clipboard
fun StringValuesBuilder.booleanValue(name: String? = null, toBoolean: StringToBoolean = defaultStringToBoolean, toString: BooleanToString = defaultBooleanToString): ValueSingleDelegateProvider<Boolean?>

Creates an optional parameter of type Boolean with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.booleanValues(name: String? = null, toBoolean: StringToBoolean = defaultStringToBoolean, toString: BooleanToString = defaultBooleanToString): NamedValuePropertyProvider<List<Boolean>?>

Creates an optional parameter of type List<Boolean> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.byteValue(name: String? = null, toByte: StringToByte = defaultStringToByte, toString: ByteToString = defaultByteToString): ValueSingleDelegateProvider<Byte?>

Creates an optional parameter of type Byte with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.byteValues(name: String? = null, toByte: StringToByte = defaultStringToByte, toString: ByteToString = defaultByteToString): NamedValuePropertyProvider<List<Byte>?>

Creates an optional parameter of type List<Byte> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(name: String): Boolean
open override fun contains(name: String, value: String): Boolean
Link copied to clipboard

Creates an optional Content-Type header of type ContentType with the given name in this KoogleHeadersBuilder instance.

Link copied to clipboard

Creates an optional Content-Type header of type List<ContentType> with the given name in this KoogleHeadersBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.doubleValue(name: String? = null, toDouble: StringToDouble = defaultStringToDouble, toString: DoubleToString = defaultDoubleToString): ValueSingleDelegateProvider<Double?>

Creates an optional parameter of type Double with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.doubleValues(name: String? = null, toDouble: StringToDouble = defaultStringToDouble, toString: DoubleToString = defaultDoubleToString): NamedValuePropertyProvider<List<Double>?>

Creates an optional parameter of type List<Double> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun entries(): Set<Map.Entry<String, List<String>>>
Link copied to clipboard
inline fun <E : Enum<E>> StringValuesBuilder.enumValue(name: String? = null, noinline toEnum: (String) -> E? = { enumValueOf<E>(it) }, noinline toString: (E) -> String = { it.toString() }): ValueSingleDelegateProvider<E?>

Creates an optional parameter of type E with the given name in this StringValuesBuilder instance.

Link copied to clipboard
inline fun <E : Enum<E>> StringValuesBuilder.enumValues(name: String? = null, noinline toEnum: (String) -> E? = { enumValueOf<E>(it) }, noinline toString: (E) -> String = { it.toString() }): NamedValuePropertyProvider<List<E>?>

Creates an optional parameter of type List<E> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.floatValue(name: String? = null, toFloat: StringToFloat = defaultStringToFloat, toString: FloatToString = defaultFloatToString): ValueSingleDelegateProvider<Float?>

Creates an optional parameter of type Float with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.floatValues(name: String? = null, toFloat: StringToFloat = defaultStringToFloat, toString: FloatToString = defaultFloatToString): NamedValuePropertyProvider<List<Float>?>

Creates an optional parameter of type List<Float> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open operator override fun get(name: String): String?
Link copied to clipboard
open override fun getAll(name: String): List<String>?
Link copied to clipboard
fun StringValuesBuilder.intValue(name: String? = null, toInt: StringToInt = defaultStringToInt, toString: IntToString = defaultIntToString): ValueSingleDelegateProvider<Int?>

Creates an optional parameter of type Int with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.intValues(name: String? = null, toInt: StringToInt = defaultStringToInt, toString: IntToString = defaultIntToString): NamedValuePropertyProvider<List<Int>?>

Creates an optional parameter of type List<Int> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun StringValuesBuilder.longValue(name: String? = null, toLong: StringToLong = defaultStringToLong, toString: LongToString = defaultLongToString): ValueSingleDelegateProvider<Long?>

Creates an optional parameter of type Long with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.longValues(name: String? = null, toLong: StringToLong = defaultStringToLong, toString: LongToString = defaultLongToString): NamedValuePropertyProvider<List<Long>?>

Creates an optional parameter of type List<Long> with the given name in this StringValuesBuilder instance.

Link copied to clipboard

Removes the specified string-value (by name) using -= syntax.

Removes the specified string-value (by names) using -= syntax.

operator fun StringValuesBuilder.minusAssign(properties: Iterable<KProperty<*>>)

Removes the specified string-value (by properties) using -= syntax.

operator fun StringValuesBuilder.minusAssign(property: KProperty<*>)

Removes the specified string-value (by property) using -= syntax.

Link copied to clipboard
open override fun names(): Set<String>
Link copied to clipboard

Adds the specified string-value using += syntax.

Link copied to clipboard
open override fun remove(name: String)
open override fun remove(name: String, value: String): Boolean
Link copied to clipboard
open override fun removeKeysWithNoEntries()
Link copied to clipboard
open operator override fun set(name: String, value: String)
Link copied to clipboard
operator fun StringValuesBuilder.set(name: String, values: Iterable<String>)

Sets the specified string-value.

Link copied to clipboard
fun StringValuesBuilder.shortValue(name: String? = null, toShort: StringToShort = defaultStringToShort, toString: ShortToString = defaultShortToString): ValueSingleDelegateProvider<Short?>

Creates an optional parameter of type Short with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.shortValues(name: String? = null, toShort: StringToShort = defaultStringToShort, toString: ShortToString = defaultShortToString): NamedValuePropertyProvider<List<Short>?>

Creates an optional parameter of type List<Short> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.stringValue(name: String? = null, toParsedString: StringParamToString = defaultStringParamToString, toParamString: StringToStringParam = defaultStringToStringParam): ValueSingleDelegateProvider<String?>

Creates an optional parameter of type String with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.stringValues(name: String? = null, toParsedString: StringParamToString = defaultStringParamToString, toParamString: StringToStringParam = defaultStringToStringParam): NamedValuePropertyProvider<List<String>?>

Creates an optional parameter of type List<String> with the given name in this StringValuesBuilder instance.

Link copied to clipboard

Sets a string-value via the delegation pattern.

Link copied to clipboard
fun StringValuesBuilder.valueList(name: String? = null, defaultValue: List<String> = emptyList(), clearListOnSet: Boolean = true): ReadWriteProperty<StringValuesBuilder, List<String>?>

Sets a string-value via the delegation pattern.