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
- Host: GitHub
- URL: https://github.com/emmanuelgautier/httpmock-netlogger
- Owner: emmanuelgautier
- License: mit
- Archived: true
- Created: 2023-09-24T15:05:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T03:03:48.000Z (over 1 year ago)
- Last Synced: 2025-03-04T16:40:10.443Z (about 1 year ago)
- Topics: http, mock, mock-server
- Language: Go
- Homepage: https://github.com/emmanuelgautier/httpmock-netlogger
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP Mock NetLogger
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/)