Struct URL

A Unique Resource Locator.

struct URL(U)
  
if (isSomeString!U);

Constructors

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

Fields

NameTypeDescription
fragment UThe anchor.
host UThe hostname.
pass UThe password.
path UThe path.
port ushortThe port number.
query UThe query string.
scheme UThe URL scheme.
user UThe username.

Methods

NameDescription
parsePort (port) Attempts to parse and set the port.

Parameters

NameDescription
U URL string type.