URL.this

Attempts to parse an URL from a string. Output string data (scheme, user, etc.) are just slices of input string (i.e., no memory allocation and copying).

struct URL
@nogc pure
this
(
const char[] source
)

Parameters

source char[]

The string containing the URL.

Throws

$(D_PSYMBOL URIException) if the URL is malformed.

Meta