Skip to content

Simple request bin. Uses web sockets to broadcast messages received in real-time

Notifications You must be signed in to change notification settings

honsq90/request-catcher-http4k

Repository files navigation

RequestCatcher

Docker Image Version (latest by date)

How it works

  • 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

Running the published Docker image

https://hub.docker.com/repository/docker/honsq90/request-catcher-http4k

docker run -p 9000:9000 honsq90/request-catcher-http4k

Building and running locally

./gradlew build distZip
docker compose up --build

Example

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)

About

Simple request bin. Uses web sockets to broadcast messages received in real-time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published