Like any good standards-based teapot toolmantim.com is now compliant with Section 2.3.2 of RFC2324: the Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0).
You too can be a good teapot citizen thanks to a ruby gem so fresh out of the oven it’ll burn your fingers: teapot—a new piece of innovative Rack middleware technology enabling you to do such feats as:
$ curl -i -X BREW toolmantim.com
HTTP/1.1 418 I'm a teapot
Date: Thu, 15 Jan 2009 13:31:30 GMT
Server: Apache
Vary: User-Agent
Content-Length: 36
Content-Type: text/plain; charset=UTF-8
Care for a cup of English Breakfast?
Alternative Ruby teapot implementations of RFC3224 include a patch to Rails by Chris Lloyd and the acts_as_teapot plugin by Simon Harris.
Those wanting a more short and stout implementation are advised to architect their own solutions. Frankly I think it’s much more polite to offer a cup of tea than waving your arms about like a flaming galah.
See the readme on github for installation instructions and teapot-enable your Rack application today!