function parseResponseFn(requests, rawResponse, config) {
    var batchResponses = [],
      boundaryToken = findResponseBoundary(rawResponse.headers()['content-type']),
      parts = rawResponse.data.split(constants.doubleDash + boundaryToken + constants.newline),
      i,
      part,
      responseCount = 0;

    for (i = 0; i < parts.length; i += 1) {
      part = parts[i];
      if (part !== constants.emptyString) {
        batchResponses.push(processResponse(part, requests[responseCount], boundaryToken));
        responseCount += 1;
      }
    }

    return batchResponses;
  }
/**
   * Parses the raw response into an array of HttpBatchResponseData objects.  If is this methods job
   * to parse the response and match it up with the orginal request object.
   * @param rawResponse
   * @param config
   * @returns {Array.HttpBatchResponseData[]}
   */
Parses the raw response into an array of HttpBatchResponseData objects.  If is this methods job
to parse the response and match it up with the orginal request object.
@param rawResponse
@param config
@returns {Array.HttpBatchResponseData[]}
Parses the raw response into an array of HttpBatchResponseData objects . If is this methods job to parse the response and match it up with the orginal request object . @param rawResponse @param config @returns { Array . HttpBatchResponseData [] }
function parseResponseFn(requests, rawResponse, config) {
    var batchResponses = [],
      boundaryToken = findResponseBoundary(rawResponse.headers()['content-type']),
      parts = rawResponse.data.split(constants.doubleDash + boundaryToken + constants.newline),
      i,
      part,
      responseCount = 0;
    for (i = 0; i < parts.length; i += 1) {
      part = parts[i];
      if (part !== constants.emptyString) {
        batchResponses.push(processResponse(part, requests[responseCount], boundaryToken));
        responseCount += 1;
      }
    }
    return batchResponses;
  }
function parseResponseFn ( requests , rawResponse , config ) { var batchResponses = [ ] , boundaryToken = findResponseBoundary ( rawResponse . headers ( ) [ 'content-type' ] ) , parts = rawResponse . data . split ( constants . doubleDash + boundaryToken + constants . newline ) , i , part , responseCount = 0 ; for ( i = 0 ; i < parts . length ; i += 1 ) { part = parts [ i ] ; if ( part !== constants . emptyString ) { batchResponses . push ( processResponse ( part , requests [ responseCount ] , boundaryToken ) ) ; responseCount += 1 ; } } return batchResponses ; }
Parses the raw response into an array of HttpBatchResponseData objects.
Parses the raw response into an array of HttpBatchResponseData objects .