0.0
No commit activity in last 3 years
No release in over 3 years
Just use Rack::HTTPCat in your application for all requests to have a link to the https://http.cat for their status under the HTTP-Cat header.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

>= 0
 Project Readme

Rack::HTTPCat

Adds an easter-egg link to a status cat in the headers of your Rack application.

Installation

Add to your Gemfile:

gem 'rack-http_cat'

And then execute:

$ bundle install

Or install it globally as:

$ gem install rack-http_cat

Usage

require 'rack/http_cat' and use Rack::HTTPCat in your config.ru (or whatever your application's entry point is).

You should see something like HTTP-Cat: https://http.cat/200 in the headers of a successful page load.

Notes

Without configuration Rack will handle 500 errors outside of your app and inside Rack itself, so you won't see a cat in your headers.