data class Url
Represents an immutable URL
Url(protocol: URLProtocol, host: String, specifiedPort: Int, encodedPath: String, parameters: Parameters, fragment: String, user: String?, password: String?, trailingQuery: Boolean)
Represents an immutable URL |
val encodedPath: String
encoded path without query string |
|
val fragment: String
URL fragment (anchor name) |
|
val host: String
name without port (domain) |
|
val parameters: Parameters
URL query parameters |
|
val password: String?
password part of URL |
|
val port: Int
the specified port or protocol default port |
|
val protocol: URLProtocol |
|
val specifiedPort: Int
port number that was specified to override protocol's default |
|
val trailingQuery: Boolean
keep trailing question character even if there are no query parameters |
|
val user: String?
username part of URL |
fun toString(): String |
val Url.authority: String
Url authority. |
|
val Url.fullPath: String
Full encoded path with query string but without domain, port and schema |
|
val Url.hostWithPort: String
Host:port pair, not normalized so port is always specified even if the port is schema's default |
fun Url.toURI(): URI
|
operator fun Url.Companion.invoke(fullUrl: String): Url
|