Plug Canonical Host v1.0.1 PlugCanonicalHost View Source
A Plug for ensuring that all requests are served by a single canonical host
Link to this section Summary
Link to this section Types
Link to this type
opts() View Source
Link to this section Functions
Link to this function
call(conn, arg2)
View Source
call(conn, arg2)
View Source
call(
%Plug.Conn{
adapter: term(),
assigns: term(),
before_send: term(),
body_params: term(),
cookies: term(),
halted: term(),
host: term(),
method: term(),
owner: term(),
params: term(),
path_info: term(),
path_params: term(),
peer: term(),
port: term(),
private: term(),
query_params: term(),
query_string: term(),
remote_ip: term(),
req_cookies: term(),
req_headers: term(),
request_path: term(),
resp_body: term(),
resp_cookies: term(),
resp_headers: term(),
scheme: term(),
script_name: term(),
secret_key_base: term(),
state: term(),
status: term()
},
opts()
) :: Plug.Conn.t()
call( %Plug.Conn{ adapter: term(), assigns: term(), before_send: term(), body_params: term(), cookies: term(), halted: term(), host: term(), method: term(), owner: term(), params: term(), path_info: term(), path_params: term(), peer: term(), port: term(), private: term(), query_params: term(), query_string: term(), remote_ip: term(), req_cookies: term(), req_headers: term(), request_path: term(), resp_body: term(), resp_cookies: term(), resp_headers: term(), scheme: term(), script_name: term(), secret_key_base: term(), state: term(), status: term() }, opts() ) :: Plug.Conn.t()
Call the plug.
Link to this function
init(opts) View Source
Initialize this plug with a canonical host option.
Link to this function