lib/collection/response.js
function (response, cookies) {
        return new Response({
            cookie: cookies,
            body: response.body.toString(),
            stream: response.body,
            header: response.headers,
            code: response.statusCode,
            status: response.statusMessage,
            responseTime: response.elapsedTime
        });
    }
function (response, cookies) {
        return new Response({
            cookie: cookies,
            body: response.body.toString(),
            stream: response.body,
            header: response.headers,
            code: response.statusCode,
            status: response.statusMessage,
            responseTime: response.elapsedTime
        });
    }
function ( response , cookies ) { return new Response ( { cookie : cookies , body : response . body . toString ( ) , stream : response . body , header : response . headers , code : response . statusCode , status : response . statusMessage , responseTime : response . elapsedTime } ) ; }
Converts the response object from the request module to the postman responseBody format

@param {Object} response The response object, as received from the request module
@param {Object} cookies
@returns {Object} The transformed responseBody
@todo Add a key: `originalRequest` to the returned object as well, referring to response.request
Converts the response object from the request module to the postman responseBody format