Module us_web_port_forwarder

Cowboy-compliant port forwarder for US-Web: automatically forwards a request aimed at a given TCP port (e.g.

Description

Cowboy-compliant port forwarder for US-Web: automatically forwards a request aimed at a given TCP port (e.g. 80) to another port (e.g. 443, for an automatic promotion of http into https).

Data Types

handler_state()

handler_state() = net_utils:tcp_port()

State carried by the process in charge of a request.

Function Index

init/2Initialises this handler.

Function Details

init/2

init(Req::cowboy_req:req(), HandlerState::handler_state()) -> us_web_handler:handler_return()

Initialises this handler.

This handler initialisation performs the requested TCP port redirection.


Generated by EDoc