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.
string
"
\
@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.
Generated using TypeDoc
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 inputstring
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.