Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webextensions/monitor-server-requests

Launch a simple HTTP server and monitor requests received
https://github.com/webextensions/monitor-server-requests

Last synced: about 2 months ago
JSON representation

Launch a simple HTTP server and monitor requests received

Awesome Lists containing this project

README

        

# monitor-server-requests
Launch a simple HTTP server and monitor/log the requests received

## Installation
```bash
$ npm install --global monitor-server-requests
```

## Usage
```bash
$ monitor-server-requests

$ monitor-server-requests --port
For example:
$ monitor-server-requests --port 8080

$ monitor-server-requests --port-dynamic
```

## Help
```bash
$ monitor-server-requests --help
Usage: monitor-server-requests [options]

Launch a simple HTTP server and monitor/log the requests received

Options:
-V, --version output the version number
-p, --port Port number to be used (eg: 3000, 4430, 8000, 8080 etc) ; (default: 8080)
-d, --port-dynamic Use dynamic port number ; (default: false)
--disable-static Do not serve static files ; (default: false)
-s, --status Status code for unmatched requests (eg: 200, 404, 500 etc) ; (default: 404)
--delay-min Minimum delay in milliseconds ; (default: 0)
--delay-max Maximum delay in milliseconds ; (default: 0)
--abort-randomly Abort randomly (Probability between 0 to 1) ; (default: 0)
--optimize-for Optimize for (size, reading, balanced) ; (default: "balanced")
-h, --help display help for command
```