src/nodeHandler.js
function createResponse(request, response, body){
  return {
    statusCode: response.statusCode,
    statusText: response.statusMessage,
    headers: response.headers,
    originalUrl: request.url,
    effectiveUrl: request.url,
    redirected: false,
    requestMethod: request.method,
    requestHeaders: request.headers,
    body: body,
    retries: 0,
    throttled: false
  };
}
function createResponse(request, response, body){
  return {
    statusCode: response.statusCode,
    statusText: response.statusMessage,
    headers: response.headers,
    originalUrl: request.url,
    effectiveUrl: request.url,
    redirected: false,
    requestMethod: request.method,
    requestHeaders: request.headers,
    body: body,
    retries: 0,
    throttled: false
  };
}
function createResponse ( request , response , body ) { return { statusCode : response . statusCode , statusText : response . statusMessage , headers : response . headers , originalUrl : request . url , effectiveUrl : request . url , redirected : false , requestMethod : request . method , requestHeaders : request . headers , body : body , retries : 0 , throttled : false } ; }
Convert an node response to a standard sdk response object

@param {Object} request {url, method, headers, retries}
@param {http.IncomingMessage} response
@param {String} body
@return {Object} response
Convert an node response to a standard sdk response object