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