X-One-Piece header with One Piece Quotes in your Rack app!
Clone or download
Pull request Compare This branch is 3 commits ahead of sosedoff:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/rack
Gemfile
OnePiece.jpg
README.md
Rakefile
rack-OnePiece.gemspec

README.md

Rack::OnePiece™

Insert X-One-Piece header with a random quote from One Piece into your rack app!

What?

This project is a stupid simple rack middleware that will inject a header with random One Piece quote into every response.

Get It

Bundle that shit:

gem "rack-OnePiece"

Run it

In your fabulous config.ru add some stuff:

require "rack/OnePiece"
use Rack::OnePiece

See It

Curl your app:

curl -i http://localhost:5000

Here we go:

HTTP/1.1 200
X-One-Piece: "I'm gonna be the Pirate King." ~Monkey D. Luffy