A dummy HTTP server that accepts all requests sent to it
From the project directory, run the program with
go run main.goBy default, the server listens on port 9090. To change this, set the -port
flag e.g.:
go run main.go -port=8989Run with the -help flag to see more options.
Send a request to the dummyserver e.g.
curl localhost:9090 --json '{ "message": "Hello World" }'You can install the executable with
go installand then run it with the command dummyserver.
To get more information on the executable, run it with the -help flag:
dummyserver -help