code: function handler(req, res, next) {
    var userAgent = req.headers["user-agent"];
  
    //-- set device
    req.device = new Device(userAgent);
  
    return next();
  }
docs: ==============================================================================