Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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