host¶
[jvm]\
@get:JvmName(name = "host")
The host address suitable for use with InetAddress.getAllByName. May be:
- A regular host name, like
android.com. - An IPv4 address, like
127.0.0.1. - An IPv6 address, like
::1. Note that there are no square braces. - An encoded IDN, like
xn--n3h.net.
| URL | host() |
|---|---|
http://android.com/ |
"android.com" |
http://127.0.0.1/ |
"127.0.0.1" |
http://[::1]/ |
"::1" |
http://xn--n3h.net/ |
"xn--n3h.net" |