Skip to content

splittype

splittype(url: string): [string, string]

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

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

Parameters

ParameterTypeDescription
urlstringURL to split

Returns

[string, string]

Tuple of [scheme, rest]