Project

cat_facts

0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware that to add cat facts in headers of HTTP responses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Cat Facts

Rack middleware that adds cat facts in headers of HTTP responses.

Response Headers:
X-Cat-Facts: The cats of this lib's developer are called Elvis and Mira.

Enhance your web platform by adding high quality cat facts!

Chemistry Cat Approves!

Installation

Add this line to your application's Gemfile:

gem 'cat_facts'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cat_facts

Add it to your Rails middleware stack in config/application.rb (in the config block)

config.middleware.use CatFacts::Middleware

Usage

Any URL will have a X-Cat-Fact header in the response, that will contain a random cat fact for your amusement.