Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christhekeele/rack-http_cat
Adds an easter-egg link to a status cat in the headers of your Rack application.
https://github.com/christhekeele/rack-http_cat
Last synced: about 2 months ago
JSON representation
Adds an easter-egg link to a status cat in the headers of your Rack application.
- Host: GitHub
- URL: https://github.com/christhekeele/rack-http_cat
- Owner: christhekeele
- Created: 2016-01-07T11:50:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T11:51:33.000Z (almost 9 years ago)
- Last Synced: 2024-05-01T21:20:57.031Z (8 months ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this 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:
```ruby
gem 'rack-http_cat'
```And then execute:
```sh
$ bundle install
```Or install it globally as:
```sh
$ 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.