parseURL

Attempts to parse an URL from a string.

  1. U parseURL(U source)
  2. auto parseURL(U source)
  3. ushort parseURL(U source)
    ushort
    parseURL
    (
    string T
    U
    )
    (
    in U source
    )
    if (
    T == "port" &&
    isSomeString!U
    )

Parameters

T

$(D_SYMBOL Component) member or $(D_KEYWORD null) for a struct with all components.

U

URL string type.

source U

The string containing the URL.

Return Value

Type: ushort

Requested URL component(s).

Meta