Plug.SSL

A plug to force SSL

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

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

Options

Source

Summary

call(conn, arg2)

Callback implementation for Plug.call/2

init(opts)

Callback implementation for Plug.init/1

Functions

call(conn, arg2)

Callback implementation for Plug.call/2.

Source
init(opts)

Callback implementation for Plug.init/1.

Source