code: function defaults(route, name, handle) {
    if (typeof route === 'function') {
      handle = route;
      name = handle.name;
      route = '/';
    }
    else if (typeof name === 'function') {
      handle = name;
      name = handle.name;
    }
  
    // A name needs to be provided
    if (!name) throw new NameError();
  
    // wrap sub-apps
    if ('function' == typeof handle.handle) {
      var server = handle;
      handle.route = route;
      handle = function(req, res, next){
        server.handle(req, res, next);
      };
    }
  
    // wrap vanilla http.Servers
    if (handle instanceof http.Server) {
      handle = handle.listeners('request')[0];
    }
  
    // strip trailing slash
    if ('/' == route[route.length - 1]) {
      route = route.slice(0, -1);
    }
  
    return {route: route, name: name, handle: handle};
  }
docs: Default the parameters
  
  @api private