Parameters
interface Parameters : StringValues
Represents HTTP parameters as a map from case-insensitive names to collection of String values
Inherited Properties
abstract val caseInsensitiveName: Boolean Specifies if map has case-sensitive or case-insensitive names |
Inherited 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: Parameters Empty Parameters instance |
Companion Object Functions
fun build(builder: ParametersBuilder.() -> Unit): Parameters Builds a Parameters 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 Parameters.formUrlEncode(): String Encode form parameters |
|
fun Parameters.formUrlEncodeTo(out: Appendable): Unit Encode form parameters to the specified out appendable |
|
fun Parameters.getOrFail(name: String): String Get parameters value associated with this name or fail with MissingRequestParameterException |
|
operator fun <R : Any> Parameters.getValue( Operator function that allows to delegate variables by call parameters. It does conversion to type R using DefaultConversionService |
|
operator fun Parameters.plus(other: Parameters): Parameters Plus operator function that creates a new parameters instance from the original one concatenating with other |
|
fun StringValues.toMap(): Map<String, List<String>> Copy values to a new independent map |
Inheritors
object |
|
class ParametersImpl : Parameters, StringValuesImpl |
|
class ParametersSingleImpl : |