mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
import time
|
||||
|
||||
def main(request, response):
|
||||
chunk = "TEST_TRICKLE\n"
|
||||
delay = float(request.GET.first("ms", 500)) / 1E3
|
||||
count = int(request.GET.first("count", 50))
|
||||
if "specifylength" in request.GET:
|
||||
response.headers.set("Content-Length", count * len(chunk))
|
||||
time.sleep(delay)
|
||||
response.headers.set("Content-type", "text/plain")
|
||||
response.write_status_headers()
|
||||
time.sleep(delay);
|
||||
for i in xrange(count):
|
||||
response.writer.write_content(chunk)
|
||||
time.sleep(delay)
|
||||
Loading…
Add table
Add a link
Reference in a new issue