Function parseURL
Attempts to parse an URL from a string.
U parseURL(string T, U)
(
in U source
)
if ((T == "scheme" || T == "host" || T == "user" || T == "pass" || T == "path" || T == "query" || T == "fragment") && isSomeString!U);
auto parseURL(U)
(
in U source
)
if (isSomeString!U);
ushort parseURL(string T, U)
(
in U source
)
if (T == "port" && isSomeString!U);
Parameters
Name | Description |
---|---|
T | Component member or null for a struct with all components. |
U | URL string type. |
source | The string containing the URL. |
Returns
Requested URL component(s).