def parse_dict_header(value):
    result = {}
    for item in _parse_list_header(value):
        if '=' not in item:
            result[item] = None
            continue
        name, value = item.split('=', 1)
        if value[:1] == value[-1:] == '"':
            value = unquote_header_value(value[1:-1])
        result[name] = value
    return result


# From mitsuhiko/werkzeug (used with permission).
Parse lists of key, value pairs as described by RFC 2068 Section 2 and
dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/utils.py/parse_dict_header