Sha256: 32cfd16d518a82a048256adfeb0d032bac12d5b3c5ae753b8bd40fae2853b09d
Contents?: true
Size: 377 Bytes
Versions: 19
Compression:
Stored size: 377 Bytes
Contents
var request = require('../index') , http = require('http') , assert = require('assert') ; var s = http.createServer(function (req, resp) { resp.statusCode = 200 resp.end('asdf') }).listen(8080, function () { var r = request('http://localhost:8080', function (e, resp) { assert.equal(JSON.parse(JSON.stringify(r)).response.statusCode, 200) s.close() }) })
Version data entries
19 entries across 19 versions & 1 rubygems