optional Uri Scheme. eg, http, https
optional Uri Authority. eg, localhost:8080, www.foo.bar
the Uri path
optional Query. Note that the query should _NOT_ be url decoded
optional Uri Fragment. Note that the fragment should _NOT_ be url decoded
Creates maybe a new Uri
with the specified parameter in query string.
Creates maybe a new Uri
with the specified parameter in query string.
If a parameter with the given name
already exists the value will be
replaced. If the parameter to be added equal the existing entry the same
instance of Uri
will be returned.
Creates a new Uri
with the specified parameter in query string.
Creates a new Uri
with the specified parameter in query string.
If a parameter with the given name
already exists the values will be
replaced with an empty list.
Creates maybe a new Uri
without the specified parameter in query string.
Creates maybe a new Uri
without the specified parameter in query string.
If no parameter with the given name
exists the same Uri
will be
returned. If the parameter to be removed is not present the existing Uri
instance of Uri
will be returned.
Creates maybe a new Uri
with the specified parameters.
Creates maybe a new Uri
with the specified parameters. The entire
query string will be replaced with the given one. If a the given
parameters equal the existing the same Uri
instance will be
returned.
Checks if a specified parameter exists in query string.
Checks if a specified parameter exists in query string. A parameter without a name can be checked with an empty string.
optional Uri Authority.
optional Uri Authority. eg, localhost:8080, www.foo.bar
Checks if a specified parameter exists in query string.
Checks if a specified parameter exists in query string. A parameter without a name can be checked with an empty string.
optional Uri Fragment.
optional Uri Fragment. Note that the fragment should _NOT_ be url decoded
Representation of the query string as a map
Representation of the query string as a map
In case a parameter is available in query string but no value is there the sequence will be empty. If the value is empty the the sequence contains an empty string.
Query String | Map |
---|---|
?param=v | Map("param" -> Seq("v")) |
?param= | Map("param" -> Seq("")) |
?param | Map("param" -> Seq()) |
?=value | Map("" -> Seq("value")) |
?p1=v1&p1=v2&p2=v3&p2=v3 | Map("p1" -> Seq("v1","v2"), "p2" -> Seq("v3","v4")) |
The query string is lazily parsed. If an error occurs during parsing
an empty Map
is returned.
View of the head elements of the URI parameters in query string.
View of the head elements of the URI parameters in query string.
In case a parameter has no value the map returns an empty string.
multiParams
the Uri path
optional Query.
optional Query. Note that the query should _NOT_ be url decoded
Creates maybe a new Uri
without the specified parameter in query string.
Creates maybe a new Uri
without the specified parameter in query string.
If no parameter with the given name
exists the same Uri
will be
returned. If the parameter to be removed is not present the existing Uri
instance of Uri
will be returned.
Base method for rendering this object efficiently
Base method for rendering this object efficiently
Generates a String rendering of this object
Generates a String rendering of this object
optional Uri Scheme.
optional Uri Scheme. eg, http, https
Creates maybe a new Uri
with the specified parameters.
Creates maybe a new Uri
with the specified parameters. The entire
query string will be replaced with the given one. If the given parameters
equal the existing the same Uri
instance will be returned.
Creates maybe a new Uri
with the specified parameter in query string.
Creates maybe a new Uri
with the specified parameter in query string.
If a parameter with the given name
already exists the values will be
replaced. If the parameter to be added equal the existing entry the same
instance of Uri
will be returned.
Creates a new Uri
with the specified parameter in query string.
Creates a new Uri
with the specified parameter in query string.
If a parameter with the given name
already exists the values will be
replaced with an empty list.
Representation of the Request URI Structure containing information related to a Uri. All fields except the query are expected to be url decoded.
optional Uri Scheme. eg, http, https
optional Uri Authority. eg, localhost:8080, www.foo.bar
the Uri path
optional Query. Note that the query should _NOT_ be url decoded
optional Uri Fragment. Note that the fragment should _NOT_ be url decoded