summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
Diffstat (limited to 'paste/debug')
-rwxr-xr-xpaste/debug/debugapp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/paste/debug/debugapp.py b/paste/debug/debugapp.py
index c33e1f4..15118d3 100755
--- a/paste/debug/debugapp.py
+++ b/paste/debug/debugapp.py
@@ -61,3 +61,13 @@ class SlowConsumer:
start_response("200 OK",[('Content-Type', 'text/html'),
('Content-Length', len(body))])
return [body]
+
+def make_test_app(global_conf):
+ return SimpleApplication()
+
+def make_slow_app(global_conf, chunk_size=4096, delay=1, progress=True):
+ from paste.deploy.converters import asbool
+ return SlowConsumer(
+ chunk_size=int(chunk_size),
+ delay=int(delay),
+ progress=asbool(progress))