All Projects → whatyouhide → plug_heartbeat

whatyouhide / plug_heartbeat

Licence: MIT License
A plug for responding to heartbeat requests.

Programming Languages

elixir
2628 projects

Labels

Projects that are alternatives of or similar to plug heartbeat

Reverse proxy plug
🔛 an Elixir reverse proxy Plug with HTTP/2, chunked transfer and path proxying support
Stars: ✭ 112 (+250%)
Mutual labels:  plug
plug-blockchain
The official plug node
Stars: ✭ 16 (-50%)
Mutual labels:  plug
plug rest
REST behaviour and Plug router for hypermedia web applications in Elixir
Stars: ✭ 52 (+62.5%)
Mutual labels:  plug
Plexy
A toolkit for building excellent APIs with Elixir
Stars: ✭ 152 (+375%)
Mutual labels:  plug
plug
A collection of pluggable traits for Eloquent (Laravel) models
Stars: ✭ 13 (-59.37%)
Mutual labels:  plug
taeseung vimrc
Taeseung Lee's vim setting
Stars: ✭ 16 (-50%)
Mutual labels:  plug
Flutter weather bg
A rich and cool weather dynamic background plug-in
Stars: ✭ 89 (+178.13%)
Mutual labels:  plug
vue-plug-in
create plug-in for vue
Stars: ✭ 25 (-21.87%)
Mutual labels:  plug
elixir plug server timing
Bring Elixir/Phoenix server-side performance metrics 📈 to Chrome's Developer Tools via the Server Timing API. Production Safe™.
Stars: ✭ 49 (+53.13%)
Mutual labels:  plug
phoenix-client-ssl
Set of Plugs / Lib to help with SSL Client Auth.
Stars: ✭ 18 (-43.75%)
Mutual labels:  plug
Logster
Easily parsable single line, plain text and JSON logger for Plug and Phoenix applications
Stars: ✭ 171 (+434.38%)
Mutual labels:  plug
Absinthe plug
Plug support for Absinthe, the GraphQL toolkit for Elixir
Stars: ✭ 209 (+553.13%)
Mutual labels:  plug
plug canonical host
PlugCanonicalHost ensures that all requests are served by a single canonical host.
Stars: ✭ 26 (-18.75%)
Mutual labels:  plug
Plug logger json
Elixir Plug that formats http request logs as json
Stars: ✭ 125 (+290.63%)
Mutual labels:  plug
guardian trackable
A Guardian hook to track user sign ins.
Stars: ✭ 25 (-21.87%)
Mutual labels:  plug
Ewebmachine
The HTTP decision tree as a plug (full elixir rewriting of basho/webmachine with improvements)
Stars: ✭ 95 (+196.88%)
Mutual labels:  plug
alternate
Plug and Phoenix helpers to localize your web app via the URL
Stars: ✭ 26 (-18.75%)
Mutual labels:  plug
etag plug
A simple to use shallow ETag plug
Stars: ✭ 18 (-43.75%)
Mutual labels:  plug
epg
一个处理电信机顶盒焦点的JavaScript插件。
Stars: ✭ 12 (-62.5%)
Mutual labels:  plug
prometheus-plugs
Prometheus.erl Elixir Plugs
Stars: ✭ 52 (+62.5%)
Mutual labels:  plug

PlugHeartbeat

A tiny plug for responding to heartbeat requests.

Installation and docs

Documentation is available on hex.pm.

Add a dependency to your application's mix.exs file:

defp deps do
  [{:plug_heartbeat, "~> 1.0"}]
end

then run mix deps.get.

Usage

Just plug this plug (sorry) in your plug pipeline:

defmodule MyServer do
  use Plug.Builder
  plug PlugHeartbeat
  # ... rest of the pipeline
end

With this setup, all GET and HEAD requests to /heartbeat will return a 200 OK status and OK as the body. This path can be customized through the :path option:

defmodule MyServer do
  use Plug.Builder
  plug PlugHeartbeat, path: "/health"
  # ... rest of the pipeline
end

That's pretty much it, but the docs contain further details.

License

MIT © Andrea Leopardi, see the license file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].