- Companion:
- object
Type members
Types
Value members
Concrete methods
Pairs with values, such as ("param", Some("value"))
, represent query params with values, i.e ?param=value
Pairs with values, such as ("param", Some("value"))
, represent query params with values, i.e ?param=value
By default, pairs without values, such as ("param", None)
, represent query params without values, i.e ?param
Using a UriConfig(renderQuery = ExcludeNones)
, will cause pairs with None
values not to be rendered
- Returns:
A new instance with the new parameter added
Adds a new Query String parameter key-value pair.
Adds a new Query String parameter key-value pair.
Pairs with values, such as ("param", Some("value"))
, represent query params with values, i.e ?param=value
Using a UriConfig(renderQuery = ExcludeNones)
, will cause pairs with None
values not to be rendered
By default, pairs without values, such as ("param", None)
, represent query params without values, i.e ?param
Adds all the specified key-value pairs as parameters to the query
Adds all the specified key-value pairs as parameters to the query
Adds all the specified key-value pairs as parameters to the query
Adds all the specified key-value pairs as parameters to the query
Pairs with values, such as ("param", Some("value"))
, represent query params with values, i.e ?param=value
By default, pairs without values, such as ("param", None)
, represent query params without values, i.e ?param
Using a UriConfig(renderQuery = ExcludeNones)
, will cause pairs with None
values not to be rendered
Adds all the specified key-value pairs as parameters to the query
Adds all the specified key-value pairs as parameters to the query
Pairs with values, such as ("param", Some("value"))
, represent query params with values, i.e ?param=value
By default, pairs without values, such as ("param", None)
, represent query params without values, i.e ?param
Using a UriConfig(renderQuery = ExcludeNones)
, will cause pairs with None
values not to be rendered
Transforms the Query String by applying the specified PartialFunction to each Query String Parameter
Transforms the Query String by applying the specified PartialFunction to each Query String Parameter
Parameters not defined in the PartialFunction will be removed.
- Value parameters:
- f
A function that returns a new Parameter when applied to each Parameter
Filters out just the parameters for which the provided function holds true
Filters out just the parameters for which the provided function holds true
Filters out just the parameters for which the provided function holds true when applied to the parameter name
Filters out just the parameters for which the provided function holds true when applied to the parameter name
Filters out just the parameters for which the provided function holds true when applied to the parameter value
Filters out just the parameters for which the provided function holds true when applied to the parameter value
Filters out just the parameters for which the provided function holds true when applied to the parameter value
Filters out just the parameters for which the provided function holds true when applied to the parameter value
Transforms each parameter by applying the specified Function
Transforms each parameter by applying the specified Function
- Value parameters:
- f
A function that returns a collection of Parameters when applied to each parameter
Transforms the Query String by applying the specified PartialFunction to each Query String Parameter
Transforms the Query String by applying the specified PartialFunction to each Query String Parameter
Parameters not defined in the PartialFunction will be left as-is.
- Value parameters:
- f
A function that returns a new Parameter when applied to each Parameter
Transforms each parameter name by applying the specified Function
Transforms each parameter name by applying the specified Function
Transforms each parameter value by applying the specified Function
Transforms each parameter value by applying the specified Function
Removes all Query String parameters with the specified key
Removes all Query String parameters with the specified key
- Value parameters:
- k
Key for the Query String parameter(s) to remove
Removes all Query String parameters with a name in the specified list
Removes all Query String parameters with a name in the specified list
- Value parameters:
- first
Name of a Query String parameter to remove
- rest
Names of more Query String parameter(s) to remove
- second
Name of another Query String parameter to remove
Removes all Query String parameters with a name in the specified list
Removes all Query String parameters with a name in the specified list
- Value parameters:
- k
Names of Query String parameter(s) to remove
Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value.
Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value.
If the value passed in is None, then all Query String parameters with the specified key are replaces with a
valueless query param. E.g. replaceParams("q", None)
would turn ?q=1&q=2
into ?q
- Value parameters:
- k
Key for the Query String parameter(s) to replace
- v
value to replace with
- Returns:
A new QueryString with the result of the replace