Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RelativeUrl

A helper class to properly split a relative url into its parts

Hierarchy

  • RelativeUrl

Implements

  • URL

Index

Constructors

constructor

Properties

Private url

url: URL

Private virtualBase

virtualBase: "file://x/" = "file://x/"

Accessors

hash

  • get hash(): string
  • set hash(value: string): void

host

  • get host(): string

hostname

  • get hostname(): string

href

  • get href(): string

origin

  • get origin(): string

password

  • get password(): string

path

  • get path(): string
  • deprecated

    only for backward compatibility, use the pathname property.

    Returns string

pathSegments

  • get pathSegments(): string[]

pathname

  • get pathname(): string
  • set pathname(value: string): void

port

  • get port(): string

protocol

  • get protocol(): string

search

  • get search(): string
  • set search(value: string): void

searchParams

  • get searchParams(): URLSearchParams

username

  • get username(): string

Methods

toJSON

  • toJSON(): string

toString

  • toString(): string

Generated using TypeDoc