ExHttpProxy v1.1.0 HttpProxy.Handle
Handle every http request to outside of the server.
Summary
Functions
Callback implementation for c:Plug.call/2
Dispatch connection and Play/Record http/https requests
Callback implementation for c:Plug.init/1
Get proxy defined in config/config.exs
Get schemes which is defined as deault
Start Cowboy http process with localhost and arbitrary port. Clients access to local Cowboy process with HTTP potocol
Types
Functions
Specs
dispatch(Plug.Conn.t, param) :: Plug.Conn.t
Dispatch connection and Play/Record http/https requests.
Specs
proxies :: []
Get proxy defined in config/config.exs
Example
iex> HttpProxy.Handle.proxies
[%{port: 8080, to: "http://google.com"}, %{port: 8081, to: "http://example.com"}]
Specs
schemes :: []
Get schemes which is defined as deault.
Example
iex> HttpProxy.Handle.schemes
[:http, :https]
Specs
start_link([binary]) :: pid
Start Cowboy http process with localhost and arbitrary port. Clients access to local Cowboy process with HTTP potocol.