final class UrlDsl extends AnyVal
Value class to add DSL functionality to Urls
- Alphabetic
- By Inheritance
- UrlDsl
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
- def #(other: Url): Url
-
def
#(fragment: String): Url
Adds a fragment to the end of the uri
Adds a fragment to the end of the uri
- fragment
String representing the fragment
- returns
A new Uri with this fragment
-
final
def
##(): Int
- Definition Classes
- Any
- def &(other: Url): Url
-
def
&(kv: String): Url
Adds a new Query String.
Adds a new Query String. The specified String is parsed as a Query String param.
- returns
A new Uri with the new Query String parameter
-
def
&(kv: (String, Any)): Url
Adds a new Query String parameter key-value pair.
Adds a new Query String parameter key-value pair. If the value for the Query String parameter is None, then this Query String parameter will be rendered without a value e.g.
?param
as opposed to?param=value
- kv
Tuple2 representing the query string parameter
- returns
A new Uri with the new Query String parameter
-
def
&&(kv: (String, Any)): Url
Maybe adds a new Query String parameter key-value pair.
Maybe adds a new Query String parameter key-value pair. If the value for the Query String parameter is None, then this Query String parameter will not be added, otherwise it will be added
- kv
Tuple2 representing the query string parameter
- returns
A new Uri with the new Query String parameter
- def /(other: Url): Url
-
def
/(pp: String): Url
Appends a path part to the path of this URI
Appends a path part to the path of this URI
- pp
The path part
- returns
A new Uri with this path part appended
-
def
/?(kv: (String, Any)): Url
Adds a trailing forward slash to the path and a new Query String parameter key-value pair.
Adds a trailing forward slash to the path and a new Query String parameter key-value pair. If the value for the Query String parameter is None, then this Query String parameter will be rendered without a value e.g.
?param
as opposed to?param=value
- kv
Tuple2 representing the query string parameter
- returns
A new Uri with the new Query String parameter
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def ?(other: Url): Url
-
def
?(kv: String): Url
Adds a new Query String.
Adds a new Query String. The specified String is parsed as a Query String param.
- returns
A new Uri with the new Query String parameter
-
def
?(kv: (String, Any)): Url
Adds a new Query String parameter key-value pair.
Adds a new Query String parameter key-value pair. If the value for the Query String parameter is None, then this Query String parameter will be rendered without a value e.g.
?param
as opposed to?param=value
- kv
Tuple2 representing the query string parameter
- returns
A new Uri with the new Query String parameter
-
def
addParams(kvs: Iterable[(String, Any)]): Url
Adds all the specified key-value pairs as parameters to the query
Adds all the specified key-value pairs as parameters to the query
- kvs
A list of key-value pairs to add as query parameters
- returns
A new Url with the new Query String parameters
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
- val url: Url