urlSplit

Parse a URL into 5 components: (scheme)://(netloc)/(path)?(query)#(fragment)

Return: a 5-tuple: (scheme, netloc, path, query, fragment). Note that we don't break the components up in smaller bits (e.g. netloc is a single string) and we don't expand % escapes.

@safe
urlSplit
(
string url
,
string scheme = ""
,
Flag!"allowFragments" allow_fragments = Yes.allowFragments
)

Meta