Bolshakova Anna ab21a11190 lab | 3 هفته پیش | |
---|---|---|
.. | ||
HISTORY.md | 3 هفته پیش | |
LICENSE | 3 هفته پیش | |
README.md | 3 هفته پیش | |
index.js | 3 هفته پیش | |
package.json | 3 هفته پیش |
Parse HTTP X-Forwarded-For header
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install forwarded
var forwarded = require('forwarded')
var addresses = forwarded(req)
Parse the X-Forwarded-For
header from the request. Returns an array
of the addresses, including the socket address for the req
, in reverse
order (i.e. index 0
is the socket address and the last index is the
furthest address, typically the end-user).
$ npm test