on_maintenance v0.5.2 Plug.OnMaintenance

Plug.OnMaintenance, an Elixir Plug, is used to disable access to your application for some length of time. Putting application in maintenance mode can be done programmatically or via mix tasks.

Note: This plug must be the first in pipeline of plugs.

Examples

defmodule AwesomeApp do
  plug Plug.OnMaintenance
  # ...
end

Summary

Functions

call(conn, opts)
get_body_and_content_type(conn)
init(opts)