HttpProxy
HttpProxy is a simple http proxy.
If you access to particular URL like http://localhost:8080
, then the http_proxy forward the request to other URL based on configuration.
example
Set configuration as the following in
config/config.exs
.use Mix.Config
config :http_proxy, proxies: [
%{port: 4000, to: "http://google.com"}, %{port: 4001, to: "http://yahoo.com"} ]
- Access to
http://localhost:4000
via Web Browser. - The http_proxy forward to http://google.com .
Summary
Functions
Callback implementation for c::application.start/2