splitport
splitport(
host:string): [string,string|null]
Defined in: packages/pythonlib/src/urllib.ts:360
Split a host:port into [host, port].
Parameters
| Parameter | Type | Description |
|---|---|---|
host | string | Host string (may include :port) |
Returns
[string, string | null]
Tuple of [host, port]