Adds a new Query String parameter key-value pair.
Adds a new parameter key with no value, e.g.
Adds a new parameter key with no value, e.g. ?param
A new instance with the new parameter added
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
A new instance with the new parameter added
Adds a new parameter key-value pair.
Adds a new parameter key-value pair.
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
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.
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 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
Transforms each parameter by applying the specified Function
Transforms each parameter by applying the specified Function
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.
A function that returns a new Parameter when applied to each Parameter
Transforms each parameter name by applying the specified Function
Transforms each parameter value by applying the specified Function
Removes all Query String parameters with a name in the specified list
Removes all Query String parameters with a name in the specified list
Names of 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
Names of Query String parameter(s) to remove
Removes all Query String parameters with the specified key
Removes all Query String parameters with the specified key
Key for the 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.
Key for the Query String parameter(s) to replace
value to replace with
A new QueryString with the result of the replace
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
Key for the Query String parameter(s) to replace
value to replace with
A new QueryString with the result of the replace
Returns the query string with no encoding taking place (e.g.
Returns the query string with no encoding taking place (e.g. non ASCII characters will not be percent encoded)
String containing the raw query string for this Uri