Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/uri
Uri
Class Uri
Hierarchy
Uri
Implements
HashCode
Compare
Debug
Display
Index
Properties
authority
fragment
path
query
scheme
Accessors
authority
Part
fragment
Identifier
fragment
Part
host
host
Address
hostIPv4
hostIPv6
host
Name
host
Part
password
path
Name
path
Part
port
port
Number
port
Part
query
Part
scheme
Name
scheme
Part
user
user
Part
username
standard
Parser
Methods
appended
Path
appended
Query
appended
Segment
appended
Slash
base
base
Path
compare
To
copy
debug
display
endpoint
equals
hash
Code
is
Defined
is
Empty
parent
parent
Path
prepended
Path
prepended
Query
prepended
Segment
prepended
Slash
removed
Query
resolve
to
Any
to
String
unresolve
updated
Query
with
Authority
with
Authority
Part
with
Fragment
with
Fragment
Identifier
with
Fragment
Part
with
Host
with
HostIPv4
with
HostIPv6
with
Host
Name
with
Host
Part
with
Password
with
Path
with
Path
Name
with
Path
Part
with
Port
with
Port
Number
with
Port
Part
with
Query
with
Query
Part
with
Scheme
with
Scheme
Name
with
Scheme
Part
with
User
with
User
Part
with
Username
authority
authority
Part
create
empty
form
fragment
fragment
Identifier
fragment
Part
from
Any
from
Init
host
hostIPv4
hostIPv6
host
Name
host
Part
parse
password
path
path
Builder
path
Part
port
port
Number
port
Part
query
query
Builder
query
Part
scheme
scheme
Name
scheme
Part
user
user
Part
username
Properties
Readonly
authority
authority
:
UriAuthority
Readonly
fragment
fragment
:
UriFragment
Readonly
path
path
:
UriPath
Readonly
query
query
:
UriQuery
Readonly
scheme
scheme
:
UriScheme
Accessors
authority
Part
get
authorityPart
(
)
:
string
Returns
string
fragment
Identifier
get
fragmentIdentifier
(
)
:
undefined
|
string
Returns
undefined
|
string
fragment
Part
get
fragmentPart
(
)
:
string
Returns
string
host
get
host
(
)
:
UriHost
Returns
UriHost
host
Address
get
hostAddress
(
)
:
string
Returns
string
hostIPv4
get
hostIPv4
(
)
:
undefined
|
string
Returns
undefined
|
string
hostIPv6
get
hostIPv6
(
)
:
undefined
|
string
Returns
undefined
|
string
host
Name
get
hostName
(
)
:
undefined
|
string
Returns
undefined
|
string
host
Part
get
hostPart
(
)
:
string
Returns
string
password
get
password
(
)
:
undefined
|
string
Returns
undefined
|
string
path
Name
get
pathName
(
)
:
string
Returns
string
path
Part
get
pathPart
(
)
:
string
Returns
string
port
get
port
(
)
:
UriPort
Returns
UriPort
port
Number
get
portNumber
(
)
:
number
Returns
number
port
Part
get
portPart
(
)
:
string
Returns
string
query
Part
get
queryPart
(
)
:
string
Returns
string
scheme
Name
get
schemeName
(
)
:
string
Returns
string
scheme
Part
get
schemePart
(
)
:
string
Returns
string
user
get
user
(
)
:
UriUser
Returns
UriUser
user
Part
get
userPart
(
)
:
string
Returns
string
username
get
username
(
)
:
undefined
|
string
Returns
undefined
|
string
Static
standard
Parser
get
standardParser
(
)
:
UriParser
Returns
UriParser
Methods
appended
Path
appended
Path
(
...
components
:
AnyUriPath
[]
)
:
Uri
Parameters
Rest
...
components:
AnyUriPath
[]
Returns
Uri
appended
Query
appended
Query
(
key
:
undefined
|
string
, value
:
string
)
:
Uri
appended
Query
(
params
:
AnyUriQuery
)
:
Uri
Parameters
key:
undefined
|
string
value:
string
Returns
Uri
Parameters
params:
AnyUriQuery
Returns
Uri
appended
Segment
appended
Segment
(
segment
:
string
)
:
Uri
Parameters
segment:
string
Returns
Uri
appended
Slash
appended
Slash
(
)
:
Uri
Returns
Uri
base
base
(
)
:
Uri
Returns
Uri
base
Path
base
Path
(
)
:
UriPath
Returns
UriPath
compare
To
compare
To
(
that
:
Uri
)
:
number
Parameters
that:
Uri
Returns
number
Protected
copy
copy
(
scheme
:
UriScheme
, authority
:
UriAuthority
, path
:
UriPath
, query
:
UriQuery
, fragment
:
UriFragment
)
:
Uri
Parameters
scheme:
UriScheme
authority:
UriAuthority
path:
UriPath
query:
UriQuery
fragment:
UriFragment
Returns
Uri
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
display
display
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
endpoint
endpoint
(
)
:
Uri
Returns
Uri
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
parent
parent
(
)
:
Uri
Returns
Uri
parent
Path
parent
Path
(
)
:
UriPath
Returns
UriPath
prepended
Path
prepended
Path
(
...
components
:
AnyUriPath
[]
)
:
Uri
Parameters
Rest
...
components:
AnyUriPath
[]
Returns
Uri
prepended
Query
prepended
Query
(
key
:
undefined
|
string
, value
:
string
)
:
Uri
prepended
Query
(
params
:
AnyUriQuery
)
:
Uri
Parameters
key:
undefined
|
string
value:
string
Returns
Uri
Parameters
params:
AnyUriQuery
Returns
Uri
prepended
Segment
prepended
Segment
(
segment
:
string
)
:
Uri
Parameters
segment:
string
Returns
Uri
prepended
Slash
prepended
Slash
(
)
:
Uri
Returns
Uri
removed
Query
removed
Query
(
key
:
string
)
:
Uri
Parameters
key:
string
Returns
Uri
resolve
resolve
(
relative
:
AnyUri
)
:
Uri
Parameters
relative:
AnyUri
Returns
Uri
to
Any
to
Any
(
)
:
{
fragment
?:
string
;
host
?:
string
;
password
?:
string
;
path
:
string
[]
;
port
?:
number
;
query
?:
{}
;
scheme
?:
string
;
username
?:
string
}
Returns
{
fragment
?:
string
;
host
?:
string
;
password
?:
string
;
path
:
string
[]
;
port
?:
number
;
query
?:
{}
;
scheme
?:
string
;
username
?:
string
}
Optional
fragment
?:
string
Optional
host
?:
string
Optional
password
?:
string
path
:
string
[]
Optional
port
?:
number
Optional
query
?:
{}
[
key:
string
]:
string
Optional
scheme
?:
string
Optional
username
?:
string
to
String
to
String
(
)
:
string
Returns
string
unresolve
unresolve
(
absolute
:
AnyUri
)
:
Uri
Parameters
absolute:
AnyUri
Returns
Uri
updated
Query
updated
Query
(
key
:
string
, value
:
string
)
:
Uri
Parameters
key:
string
value:
string
Returns
Uri
with
Authority
with
Authority
(
authority
:
AnyUriAuthority
)
:
Uri
Parameters
authority:
AnyUriAuthority
Returns
Uri
with
Authority
Part
with
Authority
Part
(
authorityPart
:
string
)
:
Uri
Parameters
authorityPart:
string
Returns
Uri
with
Fragment
with
Fragment
(
fragment
:
AnyUriFragment
)
:
Uri
Parameters
fragment:
AnyUriFragment
Returns
Uri
with
Fragment
Identifier
with
Fragment
Identifier
(
fragmentIdentifier
:
undefined
|
string
)
:
Uri
Parameters
fragmentIdentifier:
undefined
|
string
Returns
Uri
with
Fragment
Part
with
Fragment
Part
(
fragmentPart
:
string
)
:
Uri
Parameters
fragmentPart:
string
Returns
Uri
with
Host
with
Host
(
host
:
AnyUriHost
)
:
Uri
Parameters
host:
AnyUriHost
Returns
Uri
with
HostIPv4
with
HostIPv4
(
hostIPv4
:
string
)
:
Uri
Parameters
hostIPv4:
string
Returns
Uri
with
HostIPv6
with
HostIPv6
(
hostIPv6
:
string
)
:
Uri
Parameters
hostIPv6:
string
Returns
Uri
with
Host
Name
with
Host
Name
(
hostName
:
string
)
:
Uri
Parameters
hostName:
string
Returns
Uri
with
Host
Part
with
Host
Part
(
hostPart
:
string
)
:
Uri
Parameters
hostPart:
string
Returns
Uri
with
Password
with
Password
(
password
:
undefined
|
string
)
:
Uri
Parameters
password:
undefined
|
string
Returns
Uri
with
Path
with
Path
(
...
components
:
AnyUriPath
[]
)
:
Uri
Parameters
Rest
...
components:
AnyUriPath
[]
Returns
Uri
with
Path
Name
with
Path
Name
(
pathName
:
string
)
:
Uri
Parameters
pathName:
string
Returns
Uri
with
Path
Part
with
Path
Part
(
pathPart
:
string
)
:
Uri
Parameters
pathPart:
string
Returns
Uri
with
Port
with
Port
(
port
:
AnyUriPort
)
:
Uri
Parameters
port:
AnyUriPort
Returns
Uri
with
Port
Number
with
Port
Number
(
portNumber
:
number
)
:
Uri
Parameters
portNumber:
number
Returns
Uri
with
Port
Part
with
Port
Part
(
portPart
:
string
)
:
Uri
Parameters
portPart:
string
Returns
Uri
with
Query
with
Query
(
query
:
AnyUriQuery
)
:
Uri
Parameters
query:
AnyUriQuery
Returns
Uri
with
Query
Part
with
Query
Part
(
query
:
string
)
:
Uri
Parameters
query:
string
Returns
Uri
with
Scheme
with
Scheme
(
scheme
:
AnyUriScheme
)
:
Uri
Parameters
scheme:
AnyUriScheme
Returns
Uri
with
Scheme
Name
with
Scheme
Name
(
schemeName
:
string
)
:
Uri
Parameters
schemeName:
string
Returns
Uri
with
Scheme
Part
with
Scheme
Part
(
schemePart
:
string
)
:
Uri
Parameters
schemePart:
string
Returns
Uri
with
User
with
User
(
user
:
AnyUriUser
)
:
Uri
Parameters
user:
AnyUriUser
Returns
Uri
with
User
Part
with
User
Part
(
userPart
:
string
)
:
Uri
Parameters
userPart:
string
Returns
Uri
with
Username
with
Username
(
username
:
undefined
|
string
, password
?:
string
)
:
Uri
Parameters
username:
undefined
|
string
Optional
password:
string
Returns
Uri
Static
authority
authority
(
authority
:
AnyUriAuthority
)
:
Uri
Parameters
authority:
AnyUriAuthority
Returns
Uri
Static
authority
Part
authority
Part
(
authorityPart
:
string
)
:
Uri
Parameters
authorityPart:
string
Returns
Uri
Static
create
create
(
scheme
?:
UriScheme
, authority
?:
UriAuthority
, path
?:
UriPath
, query
?:
UriQuery
, fragment
?:
UriFragment
)
:
Uri
Parameters
scheme:
UriScheme
= ...
authority:
UriAuthority
= ...
path:
UriPath
= ...
query:
UriQuery
= ...
fragment:
UriFragment
= ...
Returns
Uri
Static
empty
empty
(
)
:
Uri
Returns
Uri
Static
form
form
(
)
:
Form
<
Uri
,
AnyUri
>
Returns
Form
<
Uri
,
AnyUri
>
Static
fragment
fragment
(
fragment
:
AnyUriFragment
)
:
Uri
Parameters
fragment:
AnyUriFragment
Returns
Uri
Static
fragment
Identifier
fragment
Identifier
(
fragmentIdentifier
:
undefined
|
string
)
:
Uri
Parameters
fragmentIdentifier:
undefined
|
string
Returns
Uri
Static
fragment
Part
fragment
Part
(
fragmentPart
:
string
)
:
Uri
Parameters
fragmentPart:
string
Returns
Uri
Static
from
Any
from
Any
(
value
:
undefined
|
null
|
AnyUri
)
:
Uri
Parameters
value:
undefined
|
null
|
AnyUri
Returns
Uri
Static
from
Init
from
Init
(
init
:
UriInit
)
:
Uri
Parameters
init:
UriInit
Returns
Uri
Static
host
host
(
host
:
AnyUriHost
)
:
Uri
Parameters
host:
AnyUriHost
Returns
Uri
Static
hostIPv4
hostIPv4
(
hostIPv4
:
string
)
:
Uri
Parameters
hostIPv4:
string
Returns
Uri
Static
hostIPv6
hostIPv6
(
hostIPv6
:
string
)
:
Uri
Parameters
hostIPv6:
string
Returns
Uri
Static
host
Name
host
Name
(
hostName
:
string
)
:
Uri
Parameters
hostName:
string
Returns
Uri
Static
host
Part
host
Part
(
hostPart
:
string
)
:
Uri
Parameters
hostPart:
string
Returns
Uri
Static
parse
parse
(
string
:
string
)
:
Uri
Parameters
string:
string
Returns
Uri
Static
password
password
(
password
:
string
)
:
Uri
Parameters
password:
string
Returns
Uri
Static
path
path
(
...
components
:
AnyUriPath
[]
)
:
Uri
Parameters
Rest
...
components:
AnyUriPath
[]
Returns
Uri
Static
path
Builder
path
Builder
(
)
:
UriPathBuilder
Returns
UriPathBuilder
Static
path
Part
path
Part
(
pathPart
:
string
)
:
Uri
Parameters
pathPart:
string
Returns
Uri
Static
port
port
(
port
:
AnyUriPort
)
:
Uri
Parameters
port:
AnyUriPort
Returns
Uri
Static
port
Number
port
Number
(
portNumber
:
number
)
:
Uri
Parameters
portNumber:
number
Returns
Uri
Static
port
Part
port
Part
(
portPart
:
string
)
:
Uri
Parameters
portPart:
string
Returns
Uri
Static
query
query
(
query
:
AnyUriQuery
)
:
Uri
Parameters
query:
AnyUriQuery
Returns
Uri
Static
query
Builder
query
Builder
(
)
:
UriQueryBuilder
Returns
UriQueryBuilder
Static
query
Part
query
Part
(
queryPart
:
string
)
:
Uri
Parameters
queryPart:
string
Returns
Uri
Static
scheme
scheme
(
scheme
:
AnyUriScheme
)
:
Uri
Parameters
scheme:
AnyUriScheme
Returns
Uri
Static
scheme
Name
scheme
Name
(
name
:
string
)
:
Uri
Parameters
name:
string
Returns
Uri
Static
scheme
Part
scheme
Part
(
schemePart
:
string
)
:
Uri
Parameters
schemePart:
string
Returns
Uri
Static
user
user
(
user
:
AnyUriUser
)
:
Uri
Parameters
user:
AnyUriUser
Returns
Uri
Static
user
Part
user
Part
(
userPart
:
string
)
:
Uri
Parameters
userPart:
string
Returns
Uri
Static
username
username
(
username
:
string
, password
?:
string
)
:
Uri
Parameters
username:
string
Optional
password:
string
Returns
Uri
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Uri
authority
fragment
path
query
scheme
authority
Part
fragment
Identifier
fragment
Part
host
host
Address
hostIPv4
hostIPv6
host
Name
host
Part
password
path
Name
path
Part
port
port
Number
port
Part
query
Part
scheme
Name
scheme
Part
user
user
Part
username
standard
Parser
appended
Path
appended
Query
appended
Segment
appended
Slash
base
base
Path
compare
To
copy
debug
display
endpoint
equals
hash
Code
is
Defined
is
Empty
parent
parent
Path
prepended
Path
prepended
Query
prepended
Segment
prepended
Slash
removed
Query
resolve
to
Any
to
String
unresolve
updated
Query
with
Authority
with
Authority
Part
with
Fragment
with
Fragment
Identifier
with
Fragment
Part
with
Host
with
HostIPv4
with
HostIPv6
with
Host
Name
with
Host
Part
with
Password
with
Path
with
Path
Name
with
Path
Part
with
Port
with
Port
Number
with
Port
Part
with
Query
with
Query
Part
with
Scheme
with
Scheme
Name
with
Scheme
Part
with
User
with
User
Part
with
Username
authority
authority
Part
create
empty
form
fragment
fragment
Identifier
fragment
Part
from
Any
from
Init
host
hostIPv4
hostIPv6
host
Name
host
Part
parse
password
path
path
Builder
path
Part
port
port
Number
port
Part
query
query
Builder
query
Part
scheme
scheme
Name
scheme
Part
user
user
Part
username
Generated using
TypeDoc