Parameters of a Query Can be parsed from a String, using ; or <newline> as separator between each parameters and = as separator between a key and its value. Keys and values are trimmed.

Example:
let a = "a=1;b=2;c=3|4|5;d=6"
let p = Parameters.new(a)

Constructors

Methods

  • checks if parameters contains key

    Parameters

    • key: string

    Returns boolean

    boolean

  • extends this Parameters with the value of other parameters, overwriting this if keys match.

    Parameters

    Returns void

    void

  • gets value with associated key, returning undefined if key does not exist

    Parameters

    • key: string

    Returns undefined | string

    string | undefined

  • Inserts new key,value pair into parameter

    Parameters

    • key: string
    • value: string

    Returns Map<string, string>

    void

  • Returns true if properties does not contain anything.

    Returns boolean

    void

  • gets an iterator over the keys of the Parameters

    Returns Iterator<string, any, undefined>

    Iterator

  • removes a key from the parameters

    Parameters

    • key: string

    Returns boolean

    void

  • returns the string representation of the

    Returns string

    void

  • gets an iterator over the values of the Parameters

    Returns Iterator<string, any, undefined>

    Iterator