A simple HTTP mocking tool. It allows for serving simple text or structured files as responses of a HTTP request.
- A toy project;
- A simple HTTP mock tool for helping me with my daily coding;
- No external imports, only plain and simple go packages;
- Idiomatic (I try);
You can go get
this package:
go get github.com/rjfonseca/httpmocker
Use -h
to see all available options.
It serves a directory as mocked responses (it iterates the files on each
request). The received request and returned responses are saved in a
output-<timestamp>
directory.