Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Url

Index

Constructors

  • new Url(options: UrlOptions): Url
  • Creates Url instance. If host, scheme, and port are supplied options, those values will be used. By default, a reference to the pod's environment is used instead.

    Parameters

    • options: UrlOptions

    Returns Url

Properties

_host?: string
_port?: string
_scheme?: string
path: string

Accessors

  • get host(): string
  • get port(): string
  • get scheme(): string

Methods

  • toString(): string
  • Returns a URL relative to another URL. Accepts both Document objects (i.e. for returning the URL of one document relative to another) or URLs as strings. Accepts both full URLs or paths only.

    Parameters

    • other: string | Document

      The Document or URL being linked to.

    • base: string | Document

      The Document or URL being linked from.

    Returns string

    The URL of other relative to base.

Generated using TypeDoc