code: function getInitialConfigWithoutData(method, [arg1, arg2]) {
    if (typeof arg1 === 'string') {
      const config = { ...arg2 };
      config.url = arg1;
      config.method = method || config.method || 'GET';
      return config;
    } else {
      return arg1;
    }
  }
docs: for request that contain no data (GET, HEAD, DELETE)