def split_repeated_headers(kvset):
    headers = defaultdict(list)

    for key, value in kvset:
        headers[key] = value.split(b'\x00')

    return dict(headers)
Given a set of key-value pairs (like for HTTP headers!), finds values that
dataset/ETHPy150Open Lukasa/hyper/hyper/http20/util.py/split_repeated_headers