http-echo-path
v0.2.0
Published
Tool for debugging CDN URL Rewrites. Echoes information about the request as received by the server.
Downloads
2
Readme
HTTP Echo Path
A little server to help debugging HTTP routing, URL Rewrites, redirects, proxies, etc. Takes a request at the configured port and responds with a simple HTML page with some debugging information.
I made this in my spare time. If anyone finds that useful, I usually pretty good about responding to support requests on GitHub, but I release this without any warranty or guarantee of fitness for a purpose.
Configuration
Configuration can be set from package.json, or by setting environment variable overrides.
{
"config":
{
"port": 8080
}
}
npm_package_config_port=8081 node index.js
Use as a Library
Really just so that it makes sense to publish to npm, you can use this project as a library.
npm install http-echo-path
var EchoServer = require("http-echo-path");
var server = new EchoServer();
server.start();
...
//When you want to stop it later...
server.stop();