summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/delay.py
blob: bdfef9b34aea5260ccb5aaafac0a4f44f7236b84 (plain)
1
2
3
4
5
6
import time

def main(request, response):
    delay = float(request.GET.first("ms", 500))
    time.sleep(delay / 1E3);
    return [("Content-type", "text/plain")], "TEST_DELAY"