

def make_header(control, retry=None):
    h = CaseInsensitiveDict({
        'X-Throttling-Control': control,
    })
    if retry:
        h['Retry-After'] = retry
    return h

dataset/ETHPy150Open 55minutes/python-epo-ops-client/tests/middlewares/throttle/conftest.py make_header/original