def quote_header_value(value, extra_chars='', allow_token=True):
    if isinstance(value, bytes):
        value = bytes_to_wsgi(value)
    value = str(value)
    if allow_token:
        token_chars = _token_chars | set(extra_chars)
        if set(value).issubset(token_chars):
            return value
    return '"%s"' % value.replace('\\', '\\\\').replace('"', '\\"')
type: string describing type of control (see the keys of the
dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py/quote_header_value--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/samples-and-tests/i-am-a-developer/mechanize/ClientForm.py/Control.__init__