Skip to content

splithost

splithost(url: string): [string | null, string]

Defined in: packages/pythonlib/src/urllib.ts:318

Split a URL after the host into [host, rest].

Parameters

ParameterTypeDescription
urlstringURL to split

Returns

[string | null, string]

Tuple of [host, rest]