https://github.com/mars/reqinspeq
Web listener that logs complete HTTP requests for inspection
https://github.com/mars/reqinspeq
Last synced: 5 months ago
JSON representation
Web listener that logs complete HTTP requests for inspection
- Host: GitHub
- URL: https://github.com/mars/reqinspeq
- Owner: mars
- License: mit
- Created: 2019-03-12T01:03:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T00:23:08.000Z (over 2 years ago)
- Last Synced: 2025-04-15T04:17:35.445Z (over 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
reqinspeq
=========
A simple web listener that logs complete HTTP requests for inspection.
Usage
-----
[](https://heroku.com/deploy)
Once deployed, follow the Heroku app logs using the [CLI](https://devcenter.heroku.com/articles/heroku-cli) to inspect incoming requests:
```bash
heroku logs --tail --app $APP_NAME
```
### Routes
The app will simply log the request for any path!
`/inspeq-chunked-response` is a special path that will respond with a chunked response that sends a chunk per second, making it easy to observe if a particular web browser or client streams responses from an HTTP server.
### Local Usage
Clone this repo, then inside of it:
```
npm install
PORT=3333 RESPONSE_STATUS=204 npm start
```
Then, watch the output to inspect incoming requests:
```
> reqinspeq@1.0.0 start /Users/mars.hall/Projects/reqinspeq
> node server.js
Listening on http://localhost:3333
➡️ POST /apps/maushausparty/slugs
authorization: Bearer xxxxx
accept: application/vnd.heroku+json; version=3
content-type: application/json
host: localhost:3333
connection: close
user-agent: Paw/3.1.8 (Macintosh; OS X/10.14.3) GCDHTTPRequest
content-length: 79
{"process_types":{"spinspinsugar":"echo \"\ud83c\udf6d\""},"stack":"heroku-18"}
➡️ GET /hamurai?data=eyJzb3VyY2UiOiJhcGkiLCJldmVudCI6IkFQSSByZXF1ZXN0IEdFVCAvYXBwcy9zaHJvdWRlZC1jb2FzdC0yMTMzNCIsInJlcXVlc3RlciI6InVua25vd24iLCJ1c2VySWQiOiI5MDAzY2JiMi0xZTA0LTQwZTgtYTFlZi05MmI3ZjE3N2M5YWUiLCJwYWdlIjp7InBhdGgiOiIvYXBwcy9zaHJvdWRlZC1jb2FzdC0yMTMzNCIsInVybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6NTAwMC9hcHBzL3Nocm91ZGVkLWNvYXN0LTIxMzM0Iiwic2VhcmNoIjoiIn0sInByb3BlcnRpZXMiOnsiaHR0cF92ZXJzaW9uIjoiSFRUUC8xLjEiLCJodHRwX2FjY2VwdCI6ImFwcGxpY2F0aW9uL3ZuZC5oZXJva3UranNvbjsgdmVyc2lvbj0zIn19
user-agent: curl/7.54.0
host: localhost:3333
```