A simple HTTP Server mock which log every network connections events.
- Clone or download this repository:
git clone https://github.com/emmanuelgautier/httpmock-netlogger.git
cd httpmock-netlogger
- Build the CLI tool:
go build -o httpmock-netlogger
- Run the CLI tool with the
--help
flag to see the available commands:
./httpmock-netlogger --help
You should see output similar to the following:
A simple Go CLI template.
Usage:
httpmock-netlogger [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
serve Create a HTTP Server
help Help about any command
Flags:
-h, --help help for httpmock-netlogger
Use "httpmock-netlogger [command] --help" for more information about a command.
- Run the
serve
subcommand:
./httpmock-netlogger serve -p 8080
This HTTP server mock net logger is open-source and available under the MIT License. Contributions and improvements are welcome!