httpbin.js
v2.2.1
Published
HTTPbin-like server implemented in Node.js
Readme
httpbin.js
A simple HTTP server that logs request attributes to bunyan and (optionally) response body.
Inspired by HTTPbin, but supports arbitrary endpoint.
Installation
npm install -g httpbin.js
npm install -g bunyan # this is optional but recommendedUsage
print to console
httpbin.js
# do not echo request attributes back in response
httpbin.js --no-bodyIf you have bunyan installed:
httpbin.js | bunyanlog to file
httpbin.js | bunyan | tee log.jsonlisten on other port
httpbin.js listens on 35000 by default, you can change it by:
httpbin.js -p 12345Similar projects
postmanlabs/httpbin: HTTP Request & Response Service, written in Python + Flask.
mccutchen/go-httpbin: A reasonably complete and well-tested golang port of httpbin, with zero dependencies outside the go stdlib.
[duskmoon314/httpbin-rs: HTTP Request & Response Service pretty like httpbin but powered by Rust](https://github.com/duskmoon314/httpbin-rs)
