Options
All
  • Public
  • Public/Protected
  • All
Menu

Class URL

The URL class as specified by WHATWG

Hierarchy

  • URL

Constructors

  • new URL(url: string, base?: string | URL): URL
  • Parameters

    • url: string
    • Optional base: string | URL

    Returns URL

Properties

[toStringTag]: "URL"

Accessors

  • get hash(): string
  • set hash(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get host(): string
  • set host(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get hostname(): string
  • set hostname(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get href(): string
  • set href(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get origin(): string
  • Returns string

  • get password(): string
  • set password(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get pathname(): string
  • set pathname(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get port(): string
  • set port(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get protocol(): string
  • set protocol(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get search(): string
  • set search(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

  • get username(): string
  • set username(V: string): void
  • Returns string

  • Parameters

    • V: string

    Returns void

Methods

  • toJSON(): string
  • Returns string

Generated using TypeDoc