docs: function parseOptions(options) {
          options = util.extend(true, {}, options || {});
          options.method = options.method || 'GET';
          options.headers = options.headers || [];
          options.data = options.data || '';
          options.withCredentials = !!options.withCredentials;
  
          if (typeof options.data !== 'string') {
              options.data = $.param(options.data);
              if (options.method !== 'GET') {
                  options.data = options.data;
                  options.headers.push(['Content-Type', 'application/x-www-form-urlencoded']);
              }
          }
          return options;
      }