StringValues
interface StringValues
Provides data structure for associating a String with a List of Strings
Properties
abstract val caseInsensitiveName: Boolean Specifies if map has case-sensitive or case-insensitive names |
Functions
Checks if the given name exists in the map |
|
Gets all entries from the map |
|
Iterates over all entries in this map and calls body for each pair |
|
Gets first value from the list of values associated with a name, or null if the name is not present |
|
Gets all values associated with the name, or null if the name is not present |
|
abstract fun isEmpty(): Boolean Checks if this map is empty |
|
Gets all names from the map |
Companion Object Properties
val Empty: StringValues Empty StringValues instance |
Companion Object Functions
fun build( Builds a StringValues instance with the given builder function |
Extension Functions
fun StringValues.filter( Create a new instance of StringValues filtered by the specified predicate |
|
fun StringValues.flattenEntries(): List<Pair<String, String>> Copy values to a list of pairs |
|
fun StringValues.flattenForEach( Invoke block function for every value pair |
|
fun StringValues.toMap(): Map<String, List<String>> Copy values to a new independent map |
Inheritors
interface Headers : StringValues Represents HTTP headers as a map from case-insensitive names to collection of String values |
|
interface Parameters : StringValues Represents HTTP parameters as a map from case-insensitive names to collection of String values |
|
open class StringValuesImpl : StringValues |
|
open class StringValuesSingleImpl : StringValues |