ExHttpProxy v1.2.3 HttpProxy.Handle View Source

Handle every http request to outside of the server.

Link to this section Summary

Functions

Callback implementation for Plug.call/2

Dispatch connection and Play/Record http/https requests

Callback implementation for 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

Link to this section Types

Link to this type param() View Source
param() :: binary | [param]

Link to this section Functions

Callback implementation for Plug.call/2.

Dispatch connection and Play/Record http/https requests.

Callback implementation for Plug.init/1.

Link to this function proxies() View Source
proxies() :: []

Get proxy defined in config/config.exs

Example

iex> HttpProxy.Handle.proxies
[%{port: 8080, to: "http://google.com"}, %{port: 8081, to: "http://www.google.co.jp"}]
Link to this function schemes() View Source
schemes() :: []

Get schemes which is defined as deault.

Example

iex> HttpProxy.Handle.schemes
[:http, :https]
Link to this function start_link(list) View Source
start_link([binary]) :: pid

Start Cowboy http process with localhost and arbitrary port. Clients access to local Cowboy process with HTTP potocol.