Breaks down a uri string to its components
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.)
Returns port if set, otherwise if scheme is https 443, otherwise always 80
Resolves ../ and ./ parts of the path. Used in the implementation of basedOn and you could also use it to normalize things.
Converts the broken down parts back into a complete string
Goes through a unix socket in the abstract namespace (linux only). Returns new version without modifying this object.
Indicates it should be accessed through a unix socket instead of regular tcp. Returns new version without modifying this object.
the stuff after the # in a uri.
the domain name
e.g. "/folder/file.html" in "http://example.com/folder/file.html"
port number, if given. Will be zero if a port was not explicitly given
the stuff after the ? in a uri
e.g. "http" in "http://example.com/"
the username (and possibly a password) in the uri
Represents a URI. It offers named access to the components and relative uri resolution, though as a user of the library, you'd mostly just construct it like Uri("http://example.com/index.html").