Uri

Represents a url that can be broken down or built up through properties

Constructors

this
this(string uri)

Breaks down a uri string to its components

Alias This

toString

Members

Functions

basedOn
Uri basedOn(Uri baseUrl)

Returns a new absolute Uri given a base. It treats this one as relative where possible, but absolute if not. (If protocol, domain, or other info is not set, the new one inherits it from the base.)

toString
string toString()

Converts the broken down parts back into a complete string

Variables

fragment
string fragment;

the stuff after the # in a uri.

host
string host;

the domain name

path
string path;

e.g. "/folder/file.html" in "http://example.com/folder/file.html"

port
int port;

port number, if given. Will be zero if a port was not explicitly given

query
string query;

the stuff after the ? in a uri

scheme
string scheme;

e.g. "http" in "http://example.com/"

userinfo
string userinfo;

the username (and possibly a password) in the uri

Meta