title: Flask: how to store and retrieve a value bound to the request
body: <p>I want to store a value that is bound to a Flask request, 
  I want the value to live only as long at the request and it
  should be availablbe in @app.after_request, 
  how would the get_my_request_var and set_my_request_var be implemented
  in the code below ?</p>
  
  <pre><code>@app.route("/aRoute")
  def a_function():
      set_my_request_var('aName', request, 123)
  
  
  @app.after_request
  def per_request_callbacks(response):
  
      v = get_my_request_var('aName', request)
  
      return response
  </code></pre>