URI

URI representation

Members

Aliases

fragment
alias fragment = tag

Tag/Fragment (s://host#fragment -> fragment)

scheme
alias scheme = protocol

Protocol/Scheme (https:// -> https)

Functions

setParameters
void setParameters(string _query)

Set path parameters with parameters format ("key=val;key2;key3=val2")

setQuery
void setQuery(string _query)

Set query with query format ("key=val&key2&key3=val2")

Properties

authority
string authority [@property getter]
string authority [@property setter]

Sets/Returns authority (userinfo@host:port)

filepath
string filepath [@property getter]

Treats host and path as single filepath (i.e file:///home/user/ -> /home/user)

Variables

host
string host;

Host/Domain (s://host.com/page -> host.com)

isHostIP
bool isHostIP;

Is host an IP address

parameters
string[string] parameters;

Path parameters (s://host/path;param=val -> [param=val])

path
string path;

Path (s://host/path/file -> path/file)

port
int port;

Port (s://host:25545 -> 25545)

protocol
string protocol;

Protocol/Scheme (https:// -> https)

query
string[string] query;

Query (s://host?q=4;s=5&e=1 -> [q: 4, s: 5, e: 1])

tag
string tag;

Tag/Fragment (s://host#fragment -> fragment)

userinfo
string userinfo;

User info (s://user.name:pass@host -> user.name:pass)

Meta