ParametersSingleImpl

class ParametersSingleImpl : 
    Parameters,
    StringValuesSingleImpl

Constructors

<init>

ParametersSingleImpl(name: String, values: List<String>)

Inherited Properties

name

val name: String

values

val values: List<String>

Functions

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