Class ChURIRoute<TMatrix>

A route representing parsed URI path.

Path consists of fragments separated by "/" (U+002F) symbols. An ChURIRoute instance refers to one of such fragments. Other fragments of the path may be accessed by their relative indices.

Type Parameters

Hierarchy

  • ChURIRoute

Constructors

Accessors

  • get fragment(): string
  • The URI-decoded fragment of the full path this instance refers.

    May contain leading slash for the first fragment if the path starts with /.

    May contain trailing slash for the last fragment if the path ends with /.

    Returns string

Methods

  • Obtains the fragment of the path by relative index.

    Parameters

    • index: number

      Index of target fragment relative to current one.

    Returns undefined | ChURIRoute<TMatrix>

    Either the fragment under the given index, or undefined if there is no such fragment.

Generated using TypeDoc