Record and replay http request plugin for mitmproxy.
$ docker run -it --rm -p 8080:8080 -v ${PWD}/response_data:/app/response_data chanmoro/record-and-replay-proxy record
$ docker run -it --rm -p 8080:8080 -v ${PWD}/response_data:/app/response_data chanmoro/record-and-replay-proxy replay
Recorded http response is saved into /app/response_data
by default.
You can modify save destination dir by setting an environment variable RESPONSE_DATA_DIR
.
Specify http proxy with -x
option.
$ curl -k -x localhost:8080 https://github.com/
$ docker build -t record-and-replay-proxy .
Execute test by pytest.
$ pytest