资源介绍
录像机::代理
VCR::Proxy 记录并重放您的 HTTP 交互。
用法
# 1. Start a service on port 1234
# 2. Start vcr-proxy in recording mode:
$ vcr-proxy http://localhost:1234 true
# starting server on port 8080...
# Access "origin" service through VCR proxy
$ curl http://localhost:1234/?echo=foo --proxy http://localhost:8080
foo
$ curl http://localhost:1234/?echo=bar --proxy http://localhost:8080
bar
# 3. Kill "origin" serv