Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 430 Bytes


Rack middleware that complies with Hyper Text Coffee Pot Control Protocol (HTCPCP) 1.0.

Somewhere in your Rack configuration (eg. add:

require 'rack-pot' use Rack::Pot

Then hit your application with the appropriate request:

> curl -i -H “Content-Type: application/coffee-pot-command” localhost:9292/

HTTP/1.1 418 I'm a teapot Content-Length: 0 Content-Type: application/coffee-pot-command