rack-obama

Rack middleware that accepts all nobel-prize/peace requests.

Somewhere in your Rack configuration (eg. config.ru) add:

require ‘rack-obama’ use Rack::Obama

Then hit your application with the appropriate request:

> curl -i -H “Content-Type: nobel-prize/peace” localhost:9292/

HTTP/1.1 202 Accepted Content-Length: 0 Content-Type: nobel-prize/peace