Current collected state Current
Observed since 20 Oct, 21:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7239
Parses Forwarded headers according to RFC 7239.
A module to parse Forwarded headers according to RFC 7239.
const sttn = require('7239');
sttn.parseForwardedHeader('for=203.0.113.72;proto=https')
// [{ for: '203.0.113.72', proto: 'https', by: null, host: null }]
sttn.parseForwardedHeader('for=[2001:db8::39]')
// null
app.use(sttn.middleware);
The middleware is compatible with Connect (and therefore Express).
It adds a forwarded property to the request, with the value of the last
forwarded element or { for: null, proto: null, by: null, host: null }
if no such object exists or if the header is invalid.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
tapEnvironment{
"local_name": "tap",
"alias": false,
"peer_metadata": null
} | ~1.4.1 | development |
Source distribution
{
"shasum": "c4e28417801fb90018c1f8c091f731d4a8b906ed",
"tarball": "https://registry.npmjs.org/7239/-/7239-1.0.2.tgz",
"integrity": "sha512-CSrlvQTLGyNI9fLxE91zx7Oigkoqo8PyJvIi4Glngsxs4ztDQQVIUwiK6mWM/gxXie+LHi4XHR5vrzrEGK4tNQ==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCZYzG+iQrMZ0K8+G3q901UfrH4kJOC9uGTV0eTw+LjAAIgN5adETduLYyIV3ZKY8dz2d+z1ABhP2sWEouCM1phyHY="
}
]
}Observed since 20 Oct, 21:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:8bbb45f1a29aece1ffc817f50c0cdabb17ba66d142d0c7c724637a0e9c2a6a36