_processResponse(id, data, requestInfo) {
    const detail = {
      isXhr: false,
      request: requestInfo
    };
    const redirects = this._processRedirects(data.redirects);
    if (redirects.timings.length) {
      detail.redirectsTiming = redirects.timings;
      detail.redirects = redirects.redirects;
    }
    if (data.error && typeof data.error !== 'function') {
      detail.isError = true;
      detail.error = data.error;
    } else {
      const stats = this._cleanTimings(data.stats);
      detail.isError = false;
      detail.response = data;
      detail.sentHttpMessage = data.sentHttpMessage;
      detail.loadingTime = this._computeLoadingTime(stats);
      detail.timing = stats;
      detail.auth = data.auth;
      delete detail.response.sentHttpMessage;
      delete detail.request.sentHttpMessage;
    }
    detail.id = id;
    this._beforeResponse(detail);
  }
/**
   * Processes response data and creates ARC response object.
   * @param {String} id Request ID
   * @param {Object} data Response data
   * @param {Object} requestInfo Request data
   */
Processes response data and creates ARC response object.
@param {String} id Request ID
@param {Object} data Response data
@param {Object} requestInfo Request data
Processes response data and creates ARC response object . @param { String } id Request ID @param { Object } data Response data @param { Object } requestInfo Request data
_processResponse(id, data, requestInfo) {
    const detail = {
      isXhr: false,
      request: requestInfo
    };
    const redirects = this._processRedirects(data.redirects);
    if (redirects.timings.length) {
      detail.redirectsTiming = redirects.timings;
      detail.redirects = redirects.redirects;
    }
    if (data.error && typeof data.error !== 'function') {
      detail.isError = true;
      detail.error = data.error;
    } else {
      const stats = this._cleanTimings(data.stats);
      detail.isError = false;
      detail.response = data;
      detail.sentHttpMessage = data.sentHttpMessage;
      detail.loadingTime = this._computeLoadingTime(stats);
      detail.timing = stats;
      detail.auth = data.auth;
      delete detail.response.sentHttpMessage;
      delete detail.request.sentHttpMessage;
    }
    detail.id = id;
    this._beforeResponse(detail);
  }
_processResponse ( id , data , requestInfo ) { const detail = { isXhr : false , request : requestInfo } ; const redirects = this . _processRedirects ( data . redirects ) ; if ( redirects . timings . length ) { detail . redirectsTiming = redirects . timings ; detail . redirects = redirects . redirects ; } if ( data . error && typeof data . error !== 'function' ) { detail . isError = true ; detail . error = data . error ; } else { const stats = this . _cleanTimings ( data . stats ) ; detail . isError = false ; detail . response = data ; detail . sentHttpMessage = data . sentHttpMessage ; detail . loadingTime = this . _computeLoadingTime ( stats ) ; detail . timing = stats ; detail . auth = data . auth ; delete detail . response . sentHttpMessage ; delete detail . request . sentHttpMessage ; } detail . id = id ; this . _beforeResponse ( detail ) ; }
Processes response data and creates ARC response object.
Processes response data and creates ARC response object .