コード例 #1
0
def after_request(response):
    """Remove/Add a couple of things after the request."""
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    ab_init(response)
    return response
コード例 #2
0
def after_request(response):
    """Remove/Add a couple of things after the request."""
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    if app.config['AB_EXPERIMENTS']:
        ab_init(response)
    return response