dump http request header and body for debugging
git clone https://github.com/iwanaga/http-dump.git
node index.js
- port 3000 を listen
- サーバ側から TCP の切断を行わない (chunked のデバッグをするため)
curl http://localhost:3000/ -d '{"hoge": "fuga"}'
POST /
host: localhost:3000
user-agent: curl/7.43.0
accept: */*
content-length: 16
content-type: application/x-www-form-urlencoded
{"hoge": "fuga"}
(connection closed)