Class URL

@{

Hierarchy

  • FrameworkObject
    • URL

Constructors

Accessors

Methods

Constructors

  • Parameters

    • url: string
    • OptionalisInternalConstructor: boolean

    Returns URL

Accessors

  • get hostName(): string
  • Returns the hostname.

    Returns string

  • get path(): string
  • Returns the path component.

    Returns string

  • get port(): number
  • Returns the port.

    Returns number

  • get protocol(): string
  • Returns the protocol name (without ://).

    Returns string

  • get query(): string
  • Returns the query component.

    Returns string

Methods

  • Converts the URL object into a string. The returned string is a valid URL.

    Returns string