UNPKG
node-proxy-protocol
Version:
latest (1.0.0)
1.0.0
Parser for the HA Proxy/stud PROXY protocol
racker/node-proxy-protocol
node-proxy-protocol
/
README.md
15 lines
(10 loc)
•
256 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Node.js Proxy Protocol Parser Parses the HA Proxy/stud proxy protocol line using strtok. ## Usage ``` var proxy_protocol =
require
(
"./"
); proxy_protocol.parse(tcp4,
function
(err, obj)
{ console.
log
(
'Got proxy details'
); console.
log
(obj); }); ```