%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/node_modules/node-modules/node_modules/request/tests/
Upload File :
Create Path :
Current File : //usr/local/lib/node_modules/node-modules/node_modules/request/tests/test-localAddress.js

var request = require('../index')
  , assert = require('assert')
  ;

request.get({
  uri: 'http://www.google.com', localAddress: '1.2.3.4' // some invalid address
}, function(err, res) {
  assert(!res) // asserting that no response received
})

request.get({
  uri: 'http://www.google.com', localAddress: '127.0.0.1'
}, function(err, res) {
  assert(!res) // asserting that no response received
})

Zerion Mini Shell 1.0