lib/collection/request.js
function () {
        var obj = PropertyBase.toJSON(this);

        // remove header array if blank
        if (_.isArray(obj.header) && !obj.header.length) {
            delete obj.header;
        }

        return obj;
    }
function () {
        var obj = PropertyBase.toJSON(this);

        // remove header array if blank
        if (_.isArray(obj.header) && !obj.header.length) {
            delete obj.header;
        }

        return obj;
    }
function ( ) { var obj = PropertyBase . toJSON ( this ) ; // remove header array if blank if ( _ . isArray ( obj . header ) && ! obj . header . length ) { delete obj . header ; } return obj ; }
Converts the Request to a plain JavaScript object, which is also how the request is
represented in a collection file.

@returns {{url: (*|string), method: *, header: (undefined|*), body: *, auth: *, certificate: *}}
Converts the Request to a plain JavaScript object which is also how the request is represented in a collection file .