EmptyParameters

object EmptyParameters : Parameters

Deprecated: Empty parameters is internal

Properties

caseInsensitiveName

val caseInsensitiveName: Boolean

Specifies if map has case-sensitive or case-insensitive names

Functions

entries

fun entries(): Set<Entry<String, List<String>>>

Gets all entries from the map

equals

fun equals(other: Any?): Boolean

getAll

fun getAll(name: String): List<String>?

Gets all values associated with the name, or null if the name is not present

isEmpty

fun isEmpty(): Boolean

Checks if this map is empty

names

fun names(): Set<String>

Gets all names from the map

toString

fun toString(): String

Extension Functions

filter

fun StringValues.filter(
    keepEmpty: Boolean = false,
    predicate: (String, String) -> Boolean
): StringValues

Create a new instance of StringValues filtered by the specified predicate

flattenEntries

fun StringValues.flattenEntries(): List<Pair<String, String>>

Copy values to a list of pairs

flattenForEach

fun StringValues.flattenForEach(
    block: (String, String) -> Unit
): Unit

Invoke block function for every value pair

formUrlEncode

fun Parameters.formUrlEncode(): String

Encode form parameters

formUrlEncodeTo

fun Parameters.formUrlEncodeTo(out: Appendable): Unit

Encode form parameters to the specified out appendable

getValue

operator fun <R : Any> Parameters.getValue(
    thisRef: Any?,
    property: KProperty<*>
): R

Operator function that allows to delegate variables by call parameters. It does conversion to type R using DefaultConversionService

plus

operator fun Parameters.plus(other: Parameters): Parameters

Plus operator function that creates a new parameters instance from the original one concatenating with other

toMap

fun StringValues.toMap(): Map<String, List<String>>

Copy values to a new independent map