Do you need to take a look how a request looks like? Then you need any kind of server application which receives the request and presents it to you. There for I created the "Request-Dumper".
$ rd --help
The "request-dumper" is a very fast webserver that dumps all incoming requests into his log
Usage:
rd [flags]
Flags:
-h, --help help for request-dumper
-p, --port int port on which the application listens for new requests (default 3000)
docker run --name request-dumper -p 3000:3000 ghcr.io/request-dumper/rd:1.0.0
kubectl run request-dumper --expose=true --port=3000 --image ghcr.io/request-dumper/rd:latest
kubectl logs -f request-dumper
Cleanup:
kubectl delete pod request-dumper
kubectl delete svc request-dumper
- Make output format customizable (plain text, json)
- Implement one-request mode (app exits automatically after the request was received)
- Create a homebrew formular
request-dumper is free and unencumbered public domain software. For more information, see https://unlicense.org/ or the accompanying LICENSE file.