StringValuesBuilder

open class StringValuesBuilder(caseInsensitiveName: Boolean, size: Int)

Functions

Link copied to clipboard
fun append(name: String, value: String)
Link copied to clipboard
fun appendAll(stringValues: StringValues)
fun appendAll(name: String, values: Iterable<String>)
Link copied to clipboard
fun appendMissing(stringValues: StringValues)
fun appendMissing(name: String, values: Iterable<String>)
Link copied to clipboard
open fun build(): StringValues
Link copied to clipboard
fun clear()
Link copied to clipboard
operator fun contains(name: String): Boolean
fun contains(name: String, value: String): Boolean
Link copied to clipboard
fun entries(): Set<Map.Entry<String, List<String>>>
Link copied to clipboard
operator fun get(name: String): String?
Link copied to clipboard
fun getAll(name: String): List<String>?
Link copied to clipboard
fun isEmpty(): Boolean
Link copied to clipboard
fun names(): Set<String>
Link copied to clipboard
fun remove(name: String)
fun remove(name: String, value: String): Boolean
Link copied to clipboard
fun removeKeysWithNoEntries()
Link copied to clipboard
operator fun set(name: String, value: String)

Properties

Link copied to clipboard
val caseInsensitiveName: Boolean = false

Extensions

Link copied to clipboard
fun StringValuesBuilder.appendAll(builder: StringValuesBuilder): StringValuesBuilder

Append all values from the specified builder

Link copied to clipboard
fun StringValuesBuilder.appendFiltered(source: StringValues, keepEmpty: Boolean = false, predicate: (String, String) -> Boolean)

Append values from source filtering values by the specified predicate