tango.net.model.UriView

License:
BSD style:

Version:
Initial release: April 2004

author:
Kris

abstract class UriView;
Implements an RFC 2396 compliant URI specification. See this page for more information.

The implementation fails the spec on two counts: it doesn't insist on a scheme being present in the UriView, and it doesn't implement the "Relative References" support noted in section 5.2.

Note that IRI support can be implied by assuming each of userinfo, path, query, and fragment are UTF-8 encoded (see this page for further details).

Use a Uri instead where you need to alter specific uri attributes.

abstract const int defaultPort(const(char)[] scheme);
Return the default port for the given scheme. InvalidPort is returned if the scheme is unknown, or does not accept a port.

abstract const const(char)[] scheme();
Return the parsed scheme, or null if the scheme was not specified

abstract const const(char)[] host();
Return the parsed host, or null if the host was not specified

abstract const int port();
Return the parsed port number, or InvalidPort if the port was not provided.

abstract const int validPort();
Return a valid port number by performing a lookup on the known schemes if the port was not explicitly specified.

abstract const const(char)[] userinfo();
Return the parsed userinfo, or null if userinfo was not provided.

abstract const const(char)[] path();
Return the parsed path, or null if the path was not provided.

abstract const const(char)[] query();
Return the parsed query, or null if a query was not provided.

abstract const const(char)[] fragment();
Return the parsed fragment, or null if a fragment was not provided.

abstract const bool isGeneric();
Return whether or not the UriView scheme is considered generic.


Page generated by Ddoc. Copyright (c) 2004 Kris Bell. All rights reserved