src/index.js
function(code, data, rawBody) {
        this.response = {
            response: {
                statusCode: code,
                headers: {
                    'content-type': 'application/json',
                },
            },
            body: data || "",
            err: null,
            rawBody: rawBody || false,
        };
    }
function(code, data, rawBody) {
        this.response = {
            response: {
                statusCode: code,
                headers: {
                    'content-type': 'application/json',
                },
            },
            body: data || "",
            err: null,
            rawBody: rawBody || false,
        };
    }
function ( code , data , rawBody ) { this . response = { response : { statusCode : code , headers : { 'content-type' : 'application/json' , } , } , body : data || "" , err : null , rawBody : rawBody || false , } ; }
Respond with the given data when this request is satisfied.
@param {Number} code The HTTP status code.
@param {Object|Function?} data The response body object. If this is a function,
it will be invoked when the response body is required (which should be returned).
@param {Boolean} rawBody true if the response should be returned directly rather
than json-stringifying it first.
Respond with the given data when this request is satisfied .