code: function(newSettings) {
        var s = '';
  
        if (typeof newSettings !== 'object') {
          throw new Error('ss.http.set() takes an object e.g. {static: {maxAge: 60000}}');
        }
  
        for (s in newSettings) {
          if (newSettings.hasOwnProperty(s)) {
            settings[s] = newSettings[s]
          }
        }
      }
docs: @ngdoc service
  @name http.index:index#set
  @methodOf http.index:index
  @function
  
  @description
  Merge optional settings
  
  @param {Object} newSettings Object with settins, @link settings