Module watts_http_redirect

this module is only handling incomming http requests and sends them a 303 to the httpS location.

Behaviours: cowboy_http_handler.

Description

this module is only handling incomming http requests and sends them a 303 to the httpS location.

Function Index

handle/2handle all request by taking the relative path and returning a redirection to the SSL path.
init/3this just returns the passed request.
terminate/3on termination nothing needs to be done.

Function Details

handle/2

handle(Req::cowboy_req:req(), State::any()) -> {ok, cowboy_req:req(), any()}

handle all request by taking the relative path and returning a redirection to the SSL path

init/3

init(Type::any(), Req::cowboy_req:req(), Opts::any()) -> {ok, cowboy_req:req(), []}

this just returns the passed request

terminate/3

terminate(Reason::any(), Req::any(), State::any()) -> ok

on termination nothing needs to be done


Generated by EDoc