Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbering/http-echo-path
Tool for debugging CDN URL Rewrites. Echoes information about the request as received by the server.
https://github.com/nbering/http-echo-path
Last synced: about 2 months ago
JSON representation
Tool for debugging CDN URL Rewrites. Echoes information about the request as received by the server.
- Host: GitHub
- URL: https://github.com/nbering/http-echo-path
- Owner: nbering
- License: mit
- Created: 2016-05-22T15:20:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-23T00:29:38.000Z (over 8 years ago)
- Last Synced: 2024-10-12T08:11:44.067Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
```js
{
"config":
{
"port": 8080
}
}
``````bash
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
``````js
var EchoServer = require("http-echo-path");var server = new EchoServer();
server.start();...
//When you want to stop it later...
server.stop();
```
[MIT License](LICENSE)