- Uses http4k as a server
- Uses Vue.js to augment the frontend
- Uses Websockets to broadcast requests received
- Uses mini.css as a lightweight framework
- Renders the received requests on the left in reverse order
- Can play/pause requests
- Can clear existing requests
- Can filter requests by payload
https://hub.docker.com/repository/docker/honsq90/request-catcher-http4k
docker run -p 9000:9000 honsq90/request-catcher-http4k
./gradlew build distZip
docker compose up --build
Visit http://localhost:9000/hello
To test from the command line:
curl -X PUT -d '{"json":"body"}' http://localhost:9000/hello
curl -X PUT -d 'Hello World!' http://localhost:9000/hello
or in the browser Javascript console
setInterval(() => {
fetch("/hello", {method: "POST", body: JSON.stringify({hello: "world"})})
}, 1500)