tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

delay.py (263B)


      1 import time
      2 
      3 def main(request, response):
      4    delay = float(request.GET.first(b"ms", 500))
      5    time.sleep(delay / 1E3)
      6 
      7    return [(b"Access-Control-Allow-Origin", b"*"), (b"Access-Control-Allow-Methods", b"YO"), (b"Content-type", b"text/plain")], b"TEST_DELAY"