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

Version Path
ela-4.1.6 node_modules/request/tests/test-toJSON.js
ela-4.1.5 node_modules/request/tests/test-toJSON.js
ela-4.1.4 node_modules/request/tests/test-toJSON.js
ela-4.1.3 node_modules/request/tests/test-toJSON.js
ela-4.1.2 node_modules/request/tests/test-toJSON.js
ela-4.1.1 node_modules/request/tests/test-toJSON.js
ela-4.1.0 node_modules/request/tests/test-toJSON.js
ela-4.0.0 node_modules/request/tests/test-toJSON.js
ela-3.4.3 node_modules/request/tests/test-toJSON.js
ela-3.4.2 node_modules/request/tests/test-toJSON.js
ela-3.4.0 node_modules/request/tests/test-toJSON.js
ela-3.3.1 node_modules/request/tests/test-toJSON.js
ela-3.3.0 node_modules/request/tests/test-toJSON.js
ela-3.2.0 node_modules/request/tests/test-toJSON.js
ela-3.1.1 node_modules/request/tests/test-toJSON.js
ela-3.1.0 node_modules/request/tests/test-toJSON.js
ela-3.0.0 node_modules/request/tests/test-toJSON.js
ela-2.0.0 node_modules/request/tests/test-toJSON.js
ela-1.1.0 node_modules/request/tests/test-toJSON.js