URI

An attempt at implementing URI (RFC 3986).

All constructed URI are valid and normalized.

Constructors

this
this(T input)

Creactes an URI from an input range, throws if invalid. Input should be an ENCODED url range.

Members

Enums

HostType
enum HostType
Undocumented in source.

Functions

authority
string authority()
fragment
string fragment()
hostName
string hostName()
hostType
HostType hostType()
opEquals
bool opEquals(U other)

Semantic comparison of two URIs. They are equals if they have the same normalized string representation.

path
string path()
port
int port()
query
string query()
resolveAddress
Address resolveAddress()

Resolves URI host name.

scheme
string scheme()
toString
string toString()
userInfo
string userInfo()

Static functions

isValid
bool isValid(T input)

Checks URI validity.

Bugs

  • Separate segments in parsed form.
  • Relative URL combining.
  • . and .. normalization.

Alternative: Consider using vibe.d if you need something better.

Meta