Plug.SSL

A plug to force SSL

If the scheme of a request is https, it’ll add a strict-transport-security header to enable HTTP Strict Transport Security.

Otherwise, the request will be redirected to a corresponding location with the https scheme by setting the location header of the reponse. And the status code will be 301 if the method of conn is GET or HEAD, or 307 in other situations.

Options

Source

Summary

call(conn, arg)

Callback implementation for Plug.call/2

init(opts)

Callback implementation for Plug.init/1

Functions

call(conn, arg)

Callback implementation for Plug.call/2.

Source
init(opts)

Callback implementation for Plug.init/1.

Source