Representation of a host and a port. Supports some basic parsing via fromString(input) supporting values such as example.com, example.com:80 10.0.0.1, 10.0.0.1:80, 2001:db8::1 or [2001:db8::1]:80.
fromString(input)
example.com
example.com:80
10.0.0.1
10.0.0.1:80
2001:db8::1
[2001:db8::1]:80
Create an instance from a string.
parsed host and port or null
null
Generated using TypeDoc
Representation of a host and a port. Supports some basic parsing via
fromString(input)
supporting values such asexample.com
,example.com:80
10.0.0.1
,10.0.0.1:80
,2001:db8::1
or[2001:db8::1]:80
.