A value stated as a token is reported as it stands, a token and a quoted string stating the same value being
equivalent, so this is safe to apply to whatever a field states in a value position. A value opening a quote it
doesn't close isn't taken as quoted and is reported verbatim, quote included.
Not every quoted field value is meant to be unquoted: an entity tag is compared with its quotes and any weak
prefix in place, so ETag and If-None-Match are to be read as they stand.
Parameters
value: string
The value to be parsed
Returns string
The content value states, unquoted and unescaped where stated as a quoted string, as it stands otherwise
Parses a value stated as a quoted string.
A value stated as a token is reported as it stands, a token and a quoted string stating the same value being equivalent, so this is safe to apply to whatever a field states in a value position. A value opening a quote it doesn't close isn't taken as quoted and is reported verbatim, quote included.
Not every quoted field value is meant to be unquoted: an entity tag is compared with its quotes and any weak prefix in place, so
ETagandIf-None-Matchare to be read as they stand.