Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ParsedUrl

Index

Constructors

constructor

  • new ParsedUrl(source: string, protocol: string, host: string, port?: string, path: string, segments?: string[], query?: string, params?: {}, hash?: string): ParsedUrl
  • Parameters

    • source: string

      the original url that was parsed

    • protocol: string

      the protocol declares how your web browser should communicate with a web server when sending or fetching a web page or document.

    • host: string

      the subdomain (if it exists) and domain

    • Default value port: string = ""

      the optional port number

    • path: string

      the path typically refers to a file or directory on the web server

    • Default value segments: string[] = []

      the path divided into each segment

    • Default value query: string = ""

      is represented by a question mark followed by one or more parameters.

    • Default value params: {} = {}

      are snippets of information found in the query string of a URL. An object keyed on the parameter name and the value is the paramter value

      • [name: string]: string
    • Default value hash: string = ""

      or a fragment, is an internal page reference, sometimes called a named anchor

    Returns ParsedUrl

Properties

hash

hash: string

or a fragment, is an internal page reference, sometimes called a named anchor

host

host: string

the subdomain (if it exists) and domain

params

params: {}

are snippets of information found in the query string of a URL. An object keyed on the parameter name and the value is the paramter value

Type declaration

  • [name: string]: string

path

path: string

the path typically refers to a file or directory on the web server

port

port: string

the optional port number

protocol

protocol: string

the protocol declares how your web browser should communicate with a web server when sending or fetching a web page or document.

query

query: string

is represented by a question mark followed by one or more parameters.

segments

segments: string[]

the path divided into each segment

source

source: string

the original url that was parsed

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private property
  • Static method

Generated using TypeDoc