An open API service indexing awesome lists of open source software.

https://github.com/emmanuelgautier/httpmock-netlogger

A simple HTTP Server mock which log every network connections events
https://github.com/emmanuelgautier/httpmock-netlogger

http mock mock-server

Last synced: 11 months ago
JSON representation

A simple HTTP Server mock which log every network connections events

Awesome Lists containing this project

README

          

# 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:

```bash
git clone https://github.com/emmanuelgautier/httpmock-netlogger.git
cd httpmock-netlogger
```

2. Build the CLI tool:

```bash
go build -o httpmock-netlogger
```

3. Run the CLI tool with the `--help` flag to see the available commands:

```bash
./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.
```

4. Run the `serve` subcommand:

```bash
./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](https://www.emmanuelgautier.com/)