gcc-rest.js
function(config) {
        var data, request;

        data = querystring.stringify(config);

        request = http.request(this._closureEndpoint, this._handleResponse.bind(this));
        request.on('error', function(e) {
            this.console.error('Request error', e);
            this._errCallback('http_request_error', e);
        }.bind(this));
        request.end(data);

        // For ease of use, GccRest exports an instance. Node.js caches exports.
        // We flush the cache here to prevent GccRest from returning a polluted
        // instance, in case GccRest is called multiple times.
        try {
            delete require.cache[__filename];
        } catch(err){}
    }
function(config) {
        var data, request;

        data = querystring.stringify(config);

        request = http.request(this._closureEndpoint, this._handleResponse.bind(this));
        request.on('error', function(e) {
            this.console.error('Request error', e);
            this._errCallback('http_request_error', e);
        }.bind(this));
        request.end(data);

        // For ease of use, GccRest exports an instance. Node.js caches exports.
        // We flush the cache here to prevent GccRest from returning a polluted
        // instance, in case GccRest is called multiple times.
        try {
            delete require.cache[__filename];
        } catch(err){}
    }
function ( config ) { var data , request ; data = querystring . stringify ( config ) ; request = http . request ( this . _closureEndpoint , this . _handleResponse . bind ( this ) ) ; request . on ( 'error' , function ( e ) { this . console . error ( 'Request error' , e ) ; this . _errCallback ( 'http_request_error' , e ) ; } . bind ( this ) ) ; request . end ( data ) ; // For ease of use, GccRest exports an instance. Node.js caches exports. // We flush the cache here to prevent GccRest from returning a polluted // instance, in case GccRest is called multiple times. try { delete require . cache [ __filename ] ; } catch ( err ) { } }
Compile source HTTP request.
@param {Object} config
@private
Compile source HTTP request .