Flask:响应返回事件

时间:2015-04-20 11:16:52

标签: python flask

客户端收到响应后是否可以执行函数?

@app.route('/hello')
def hello():
    return 'hello'
    # perform some action after returning the response

我找到了this代码段,但它只是在返回之前改变了的响应。

0 个答案:

没有答案