Function parseParameters

  • Parses a list of split parameters and checks their validity.

    Throws

    BadRequestHttpError Thrown on invalid parameter syntax.

    Parameters

    • parameters: string[]

      A list of split parameters (token [ "=" ( token / quoted-string ) ])

    • replacements: Record<string, string>

      The double quoted strings that need to be replaced.

    Returns {
        name: string;
        value: string;
    }[]

    An array of name/value objects corresponding to the parameters.