@app.route('/delay/<delay>')
def delay_response(delay):
 delay = min(float(delay), 10)
 time.sleep(delay)
 return jsonify(get_dict('url', 'args', 'form', 'data', 'origin', 'headers', 'files'))

@ app . route ( '/delay/<delay>' ) def delay_response ( delay ) : delay = min ( float ( delay ) , 10 ) time . sleep ( delay ) return jsonify ( get_dict ( 'url' , 'args' , 'form' , 'data' , 'origin' , 'headers' , 'files' ) )
returns a delayed response .