Skip to content

request-dumper/rd

Repository files navigation

Request-Dumper (rd)

GitHub release (latest SemVer) GitHub go.mod Go version Go Report Card

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".

Run it locally

$ 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)

Run it in a container

docker run --name request-dumper -p 3000:3000 ghcr.io/request-dumper/rd:1.0.0

Run it in kubernetes

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

ToDo's

  • Make output format customizable (plain text, json)
  • Implement one-request mode (app exits automatically after the request was received)
  • Create a homebrew formular

License

request-dumper is free and unencumbered public domain software. For more information, see https://unlicense.org/ or the accompanying LICENSE file.