toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.net
/
URL
/
Companion
Companion
object
Companion
Members
Properties
DEFAULT_PORT
Link copied to clipboard
val
DEFAULT_PORT
:
Int
=
0
Functions
decode
Component
Link copied to clipboard
fun
decodeComponent
(
s
:
String
,
charset
:
Charset
=
UTF8
,
formUrlEncoded
:
Boolean
=
false
)
:
String
default
Port
For
Scheme
Link copied to clipboard
fun
defaultPortForScheme
(
scheme
:
String
?
)
:
Int
encode
Component
Link copied to clipboard
fun
encodeComponent
(
s
:
String
,
charset
:
Charset
=
UTF8
,
formUrlEncoded
:
Boolean
=
false
)
:
String
invoke
Link copied to clipboard
operator
fun
invoke
(
url
:
String
)
:
URL
operator
fun
invoke
(
scheme
:
String
?
,
userInfo
:
String
?
,
host
:
String
?
,
path
:
String
,
query
:
String
?
,
fragment
:
String
?
,
opaque
:
Boolean
=
false
,
port
:
Int
=
DEFAULT_PORT
)
:
URL
is
Absolute
Link copied to clipboard
fun
isAbsolute
(
url
:
String
)
:
Boolean
resolve
Link copied to clipboard
fun
resolve
(
base
:
String
,
access
:
String
)
:
String