• Conditionally encloses HTTP header value or its part into double quotes.

    Quotes will be added if delimiter or special character is present in input string, or the input string is empty. Escapes " and \ symbols.

    @param string - A string to quote.

    @returns Either a string enclosed in double quotes, or original string if there is no need to quote it.

    Parameters

    • string: string

    Returns string

Generated using TypeDoc