/httpmock-netlogger

A simple HTTP Server mock which log every network connections events

Primary LanguageGoMIT LicenseMIT

HTTP Mock NetLogger

CI Tasks for Go Cli template Go Report Card PkgGoDev

A simple HTTP Server mock which log every network connections events.

Usage

  1. Clone or download this repository:
git clone https://github.com/emmanuelgautier/httpmock-netlogger.git
cd httpmock-netlogger
  1. Build the CLI tool:
go build -o httpmock-netlogger
  1. 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.
  1. Run the serve subcommand:
./httpmock-netlogger serve -p 8080

License

This HTTP server mock net logger is open-source and available under the MIT License. Contributions and improvements are welcome!

Author

Emmanuel Gautier