code: def request_context(app, request):
      
      vars = {}
      if request.view_args is not None:
          vars.update(request.view_args)
      vars.update({
          "request": request,
          "GET": AttrDict(request.args.to_dict()),
          "POST" : AttrDict(request.form.to_dict()),
          "app": app,
          "config": app.config,
          "session": session,
          "g": g,
          "now": datetime.datetime.now,
          "utcnow": datetime.datetime.utcnow,
          "today": datetime.date.today})
      context = Context(vars)
      context.vars["current_context"] = context
      return context
docs: Creates a Context instance from the given request object