proxy-chain
Version:
Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.
17 lines • 574 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHopByHopHeader = void 0;
// As per HTTP specification, hop-by-hop headers should be consumed but the proxy, and not forwarded
const hopByHopHeaders = [
'connection',
'keep-alive',
'proxy-authenticate',
'proxy-authorization',
'te',
'trailer',
'transfer-encoding',
'upgrade',
];
const isHopByHopHeader = (header) => hopByHopHeaders.includes(header.toLowerCase());
exports.isHopByHopHeader = isHopByHopHeader;
//# sourceMappingURL=is_hop_by_hop_header.js.map
;