Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Middleware that responds to simple keep alive pings

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages