Class ChURI<TRoute, TQuery, TAnchor, TAuth>

Charged URI.

Represents URI conforming to RFC3986. Resembles standard URL class in its read-only part.

Supports Matrix URI syntax by representing path as route.

Allows to parse URI charge attached to various parts of the URI.

Parses the data on demand, so it does not affect performance when not needed.

Type Parameters

Hierarchy

  • ChURI

Constructors

Accessors

  • get hash(): string
  • String containing a "#" followed by the fragment identifier of the URI.

    The fragment is not percent-decoded. If the URI does not have a fragment identifier, this property contains an empty string — "".

    See RFC3986, Section 3.5.

    Returns string

  • get host(): string
  • String containing the host, that is the hostname, and then, if the port of the URI is nonempty, a ":"", followed by the port of the URL.

    Returns string

  • get protocol(): string
  • String representing hierarchical protocol scheme of the URI, including the final :.

    In contrast to URL.protocol, hierarchical protocol includes all protocols preceding host or path. I.e. for URIs likeblob:http://example.com it returns blob:http: rather just blob:.

    Returns string

  • get scheme(): string
  • String containing hierarchical URI scheme without trailing :.

    hierarchical scheme includes all schemae preceding host or path. I.e. for URIs likeblob:http://example.com it returns blob:http rather just blob.

    See RFC3986, Section 3.1

    Returns string

Methods

Generated using TypeDoc