Options
All
  • Public
  • Public/Protected
  • All
Menu

Class URLQuery

Package version

A class that handles the query portion of a URLBuilder.

Hierarchy

  • URLQuery

Index

Methods

any

  • any(): boolean

get

  • get(parameterName: string): string | string[] | undefined
  • Get the value of the query parameter with the provided name. If no parameter exists with the provided parameter name, then undefined will be returned.

    Parameters

    • parameterName: string

    Returns string | string[] | undefined

keys

  • keys(): string[]

set

  • set(parameterName: string, parameterValue: unknown): void
  • Set a query parameter with the provided name and value. If the parameterValue is undefined or empty, then this will attempt to remove an existing query parameter with the provided parameterName.

    Parameters

    • parameterName: string
    • parameterValue: unknown

    Returns void

toString

  • toString(): string

Static parse

Generated using TypeDoc