https://github.com/cloudnode-pro/request-catcher
Catch and debug HTTP packets or forward them to a local host
https://github.com/cloudnode-pro/request-catcher
debug http http-requests http-test webhooks-catcher
Last synced: 8 months ago
JSON representation
Catch and debug HTTP packets or forward them to a local host
- Host: GitHub
- URL: https://github.com/cloudnode-pro/request-catcher
- Owner: cloudnode-pro
- License: gpl-3.0
- Created: 2023-02-02T11:20:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T15:21:08.000Z (over 2 years ago)
- Last Synced: 2025-01-27T09:29:09.510Z (about 1 year ago)
- Topics: debug, http, http-requests, http-test, webhooks-catcher
- Language: TypeScript
- Homepage:
- Size: 164 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# request-catcher
Catch and debug HTTP packets or forward them to a local host
A public instance can be found at [req.cldn.pro](https://req.cldn.pro).
## Installation
```bash
# clone repository
git clone https://github.com/cloudnode-pro/request-catcher/
# navigate to the repository directory
cd request-catcher
# install dependencies
npm install
# build the software and run it
npm start:build
```
By default, an HTTP server will be started and listen on port 80. You can change that and also enable HTTPS by creating a `config.json` file or by passing command line arguments.
### Configuration
- `tls` - TLS options. If set, in addition to HTTP, the server will also serve HTTPS. Optional.
- `cert` - Path to the TLS/SSL certificate or certificate chain
- `key` - Path to the TLS/SSL private key
- `port` - Port to use for HTTPS
- `port` - Port to use for HTTP
- `serverName` - Server name broadcasted in the Server HTTP header. Set to undefined to disable. Optional.
### Command line arguments
You can pass the following CLI args after `node .` or `npm start --`:
```
-c, --cert Path to the TLS/SSL certificate or certificate chain
-k, --key Path to the TLS/SSL private key
-s, --https Port to use for HTTPS
-p, --http Port to use for HTTP
-n, --name Server name broadcasted in the Server HTTP header
```