def build_flask_context(request):
 return HTTPContext(url=request.url, method=request.method, user_agent=request.user_agent.string, referrer=request.referrer, remote_ip=request.remote_addr)

def build_flask_context ( request ) : return HTTPContext ( url = request . url , method = request . method , user_agent = request . user_agent . string , referrer = request . referrer , remote_ip = request . remote_addr )
builds an http context object from a flask request object .