code: function getConfigOptions(opts) {
      opts = formatOptions(opts);
      _.forEach(config, function(value, key) {
        opts[key] = opts[key] || value;
      });
      opts.headers = opts.headers || {};
  
      return opts;
    }
docs: Get all options with default values if empty
  
  @param {Object/String} opts The options object or string with the required name
  @returns {Object} The configuration with default values
  @private
  @ignore