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"