summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/common/slow.py
blob: 9be8aadf3536c6d42bd166b2d4ffce6ae6f11af8 (plain)
1
2
3
4
5
6
import time

def main(request, response):
    delay = float(request.GET.first(b"delay", 2000)) / 1000
    time.sleep(delay)
    return 200, [], b''