PlugHealthCheck v0.0.1 PlugHealthCheck View Source
Health Check endpoint plug.
Responds with status 200 OK and body OK
to GET
requests at an especific path.
Options
:path
-[String]
the path to mount the plug. (Default:/health/check
)
Examples
Default Path
defmodule WebApp do
use Plug.builder
plug PlugHealthCheck
# ... rest of the code
end
Custom Path
defmodule WebApp do
use Plug.builder
plug PlugHealthCheck, plug: "/health"
# ... resto of the code
end
Link to this section Summary
Link to this section Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.