Options
All
  • Public
  • Public/Protected
  • All
Menu

Export the as-url URL API that we can use with Fastly

Hierarchy

  • URL

Index

Constructors

constructor

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

    • url: string
    • baseUrl: null | string = null

    Returns URL

Properties

Private _urlProps

_urlProps: URLProperties

Accessors

hash

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

  • Parameters

    • hash: string

    Returns void

host

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

  • Parameters

    • host: string

    Returns void

hostname

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

  • Parameters

    • hostname: string

    Returns void

href

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

  • Parameters

    • absoluteUrl: string

    Returns void

origin

  • get origin(): string
  • Returns string

password

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

  • Parameters

    • password: string

    Returns void

pathname

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

  • Parameters

    • pathname: string

    Returns void

port

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

  • Parameters

    • port: string

    Returns void

protocol

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

  • Parameters

    • protocol: string

    Returns void

search

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

  • Parameters

    • search: string

    Returns void

username

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

  • Parameters

    • username: string

    Returns void

Methods

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string

Legend

Generated using TypeDoc