Representation of the Request URI
- Value Params
- authority
optional Uri Authority. eg, localhost:8080, www.foo.bar
- fragment
optional Uri Fragment. url-encoded.
- path
url-encoded string representation of the path component of the Uri.
- query
optional Query. url-encoded.
- scheme
optional Uri Scheme. eg, http, https
- Companion
- object
Value members
Concrete methods
Splits the path segments and adds each of them to the path url-encoded. A segment is delimited by /
Splits the path segments and adds each of them to the path url-encoded. A segment is delimited by /
- Value Params
- morePath
the path to add
- Returns
a new uri with the segments added to the path
Urlencodes and adds a path segment to the Uri
Urlencodes and adds a path segment to the Uri
- Value Params
- newSegment
the segment to add.
- Returns
a new uri with the segment added to the path
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.
=====Examples=====
<table> <tr><th>Query String</th><th>Map</th></tr> <tr><td><code>?param=v</code></td><td><code>Map("param" -> Seq("v"))</code></td></tr> <tr><td><code>?param=</code></td><td><code>Map("param" -> Seq(""))</code></td></tr> <tr><td><code>?param</code></td><td><code>Map("param" -> Seq())</code></td></tr> <tr><td><code>?=value</code></td><td><code>Map("" -> Seq("value"))</code></td></tr> <tr><td><code>?p1=v1&p1=v2&p2=v3&p2=v3</code></td><td><code>Map("p1" -> Seq("v1","v2"), "p2" -> Seq("v3","v4"))</code></td></tr> </table>
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.
- See also
multiParams
Converts this request to origin-form, which is the absolute path and optional query. If the path is relative, it is assumed to be relative to the root.
Converts this request to origin-form, which is the absolute path and optional query. If the path is relative, it is assumed to be relative to the root.
Deprecated methods
Inherited methods
alias for withQueryParam
alias for withQueryParam
- Inherited from
- QueryOps
alias for withQueryParam
alias for withQueryParam
- Inherited from
- QueryOps
alias for withQueryParam
alias for withQueryParam
- Inherited from
- QueryOps
alias for withQueryParam
alias for withQueryParam
- Inherited from
- QueryOps
alias for withOptionQueryParam
alias for withOptionQueryParam
- Inherited from
- QueryOps
alias for withOptionQueryParam
alias for withOptionQueryParam
- Inherited from
- QueryOps
Creates maybe a new Self
without the specified parameter in query.
If no parameter with the given key
exists then this
will be
returned.
Creates maybe a new Self
without the specified parameter in query.
If no parameter with the given key
exists then this
will be
returned.
- Inherited from
- QueryOps
Creates maybe a new Self
with all the specified parameters in the
Query. If any of the given parameters' keys already exists, the
value(s) will be replaced. Parameters from the input map are added
left-to-right, so if a parameter with a given key is specified more than
once, it will be self-overwriting.
Creates maybe a new Self
with all the specified parameters in the
Query. If any of the given parameters' keys already exists, the
value(s) will be replaced. Parameters from the input map are added
left-to-right, so if a parameter with a given key is specified more than
once, it will be self-overwriting.
- Inherited from
- QueryOps
Creates maybe a new Self
with the specified parameter in the Query.
If the value is empty or if the parameter to be added equal the existing
entry the same instance of Self
will be returned.
If a parameter with the given name
already exists the values will be
replaced.
Creates maybe a new Self
with the specified parameter in the Query.
If the value is empty or if the parameter to be added equal the existing
entry the same instance of Self
will be returned.
If a parameter with the given key
already exists the values will be
replaced.
Creates maybe a new Self
with the specified parameters in the Query.
If a parameter with the given key
already exists the values will be
replaced.
Creates maybe a new Self
with the specified parameter in the Query.
If a parameter with the given key
already exists the values will be
replaced. If the parameter to be added equal the existing entry the same
instance of Self
will be returned.
Creates a new Self
with the specified parameter in the Query.
If a parameter with the given key
already exists the values will be
replaced with an empty list.
Creates a new Self
with the specified parameter in the Query.
If a parameter with the given QueryParam.key
already exists the values will be
replaced with an empty list.
Creates maybe a new Self
with all the specified parameters in the
Query. If any of the given parameters' keys already exists, the
value(s) will be replaced. Parameters from the input map are added
left-to-right, so if a parameter with a given key is specified more than
once, it will be self-overwriting.
Creates maybe a new Self
with all the specified parameters in the
Query. If any of the given parameters' keys already exists, the
value(s) will be replaced. Parameters from the input map are added
left-to-right, so if a parameter with a given key is specified more than
once, it will be self-overwriting.
- Inherited from
- QueryOps