4def application(environ, start_response): 5 delay = float(environ.get('HTTP_X_DELAY', 0)) 6 7 time.sleep(delay) 8
| 5def application(environ, start_response): 6 delay = float(environ.get('HTTP_X_DELAY', 0)) 7 8 time.sleep(delay) 9
|
9 start_response('200', [ 10 ('Content-Length', '0'), 11 ('Wsgi-Multithread', str(environ['wsgi.multithread'])), 12 ('X-Thread', str(threading.currentThread().ident)) 13 ])
| 10 start_response( 11 '200', 12 [ 13 ('Content-Length', '0'), 14 ('Wsgi-Multithread', str(environ['wsgi.multithread'])), 15 ('X-Thread', str(threading.currentThread().ident)), 16 ], 17 )
|