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''