HttpProxy
Simple multi HTTP Proxy using Plug. Base implementation is inspired by https://github.com/josevalim/proxy.
How to use
$ mix deps.get
$ mix proxy # start proxy server
Configuration
use Mix.Config
config :http_proxy,
proxies: [
%{port: 4000,
to: "http://google.com"},
%{port: 4001,
to: "http://yahoo.com"}
]
record: true, # true: record requests. false: don't record.
export_path: "test_example" #
TODO
- record request
- the following format is a sample.
- play request
- use vcr <= a bit...
- integrate https://github.com/parroty/exvcr
LICENSE
MIT. Please read LICENSE.