Function transformQuotedStrings

  • Replaces all double quoted strings in the input string with "0", "1", etc.


    BadRequestHttpError Thrown if invalid characters are detected in a quoted string.


    • input: string

      The Accept header string.

    Returns {
        replacements: Record<string, string>;
        result: string;

    The transformed string and a map with keys "0", etc. and values the original string that was there.

    • replacements: Record<string, string>
    • result: string