Sha256: 37a3a3ca17eee57f30416354876362d3c1a73591d36335d6fb5ce46c47c55f3a
Contents?: true
Size: 394 Bytes
Versions: 74
Compression:
Stored size: 394 Bytes
Contents
var http = require('../../'); http.get({ path : '/doom' }, function (res) { var div = document.getElementById('result'); if (!div.style) div.style = {}; div.style.color = 'rgb(80,80,80)'; res.on('data', function (buf) { div.innerHTML += buf; }); res.on('end', function () { div.style.color = 'black'; div.innerHTML += '!'; }); });
Version data entries
74 entries across 72 versions & 5 rubygems