api

http4k / org.apache.commons.fileupload.util / ParameterParser / parse

parse

open fun parse(str: String!, separators: CharArray!): MutableMap<String!, String!>!

Extracts a map of name/value pairs from the given string. Names are expected to be unique. Multiple separators may be specified and the earliest found in the input string is used.

Parameters

str - String!: the string that contains a sequence of name/value pairs

separators - CharArray!: the name/value pairs separators

Return MutableMap<String!, String!>!: a map of name/value pairs

open fun parse(str: String!, separator: Char): MutableMap<String!, String!>!

Extracts a map of name/value pairs from the given string. Names are expected to be unique.

Parameters

str - String!: the string that contains a sequence of name/value pairs

separator - Char: the name/value pairs separator

Return MutableMap<String!, String!>!: a map of name/value pairs