Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crccheck/goreplay-middlewares
Useful Goreplay middlewares I've come up with.
https://github.com/crccheck/goreplay-middlewares
goreplay
Last synced: 4 days ago
JSON representation
Useful Goreplay middlewares I've come up with.
- Host: GitHub
- URL: https://github.com/crccheck/goreplay-middlewares
- Owner: crccheck
- License: isc
- Created: 2018-02-14T06:00:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T20:27:31.000Z (almost 7 years ago)
- Last Synced: 2024-12-19T10:12:08.595Z (15 days ago)
- Topics: goreplay
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Goreplay Middlewares
===================Useful [Goreplay] middlewares I've come up with.
Compare HTTP
------------Compare the HTTP responses between the original and replayed request.
* language: Bash
### Sample
In terminal 1:
python3 -m http.server 6969
In terminal 2:
python2 -m SimpleHTTPServer 9001
In terminal 3:
while [ 1 ]; do curl -v localhost:6969; sleep 3; done
In terminal 4:
./gor \
--input-raw-bpf-filter ":" \
--input-raw :6969 \
--input-raw-track-response \
--middleware "/path/to/goreplay-middlewars/compare_http.sh" \
--output-http http://localhost:9001 \
--output-http-track-response`input-raw-bpf-filter` is only needed for local testing
[goreplay]: https://github.com/buger/goreplay