Ping::Middleware
Middleware that responds to simple keep alive pings
Usage
Use Ping::Middleware as a Rack middleware. After that the middleware responds to any request coming in to the /__ping__ path and responds with a HTTP 200 status code and a body which just reads: Pong.
Sinatra
require "ping-middleware"
require "sinatra"
use Ping::Middleware
get '/' do
"hello"
end
Rails
# config/application.rb
config.middleware.use Ping::Middleware