Options
All
  • Public
  • Public/Protected
  • All
Menu

The URL class as specified by WHATWG

see

URL on MDN

Hierarchy

  • URL

Index

Constructors

constructor

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

    • url: string
    • Optional base: string | URL

    Returns URL

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: "URL"

Accessors

hash

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

  • Parameters

    • V: string

    Returns any

host

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

  • Parameters

    • V: string

    Returns any

hostname

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

  • Parameters

    • V: string

    Returns any

href

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

  • Parameters

    • V: string

    Returns any

origin

  • get origin(): string
  • Returns string

password

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

  • Parameters

    • V: string

    Returns any

pathname

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

  • Parameters

    • V: string

    Returns any

port

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

  • Parameters

    • V: string

    Returns any

protocol

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

  • Parameters

    • V: string

    Returns any

search

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

  • Parameters

    • V: string

    Returns any

searchParams

username

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

  • Parameters

    • V: string

    Returns any

Methods

toJSON

  • toJSON(): string
  • Returns string

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method

Generated using TypeDoc