@app.after_request
def add_rate_limit_headers(response):
    try:
        limit, remaining, expires = map(int, g.rate_limits)
    except (AttributeError, __HOLE__):
        return response
    else:
        response.headers.add('X-RateLimit-Remaining', remaining)
        response.headers.add('X-RateLimit-Limit', limit)
        response.headers.add('X-RateLimit-Reset', expires)
        return response
dataset/ETHPy150Open projectweekend/Flask-PostgreSQL-API-Seed/app/utils/rate_limit.py/add_rate_limit_headers