delay.py (285B)
1 # Copyright 2025 The Chromium Authors 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 import time 5 6 def main(request, response): 7 delay = int(request.GET.first(b"delay")) / 1000 8 time.sleep(delay) 9 response.content = u"OK"