This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
teapot /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jan 15 05:19:56 -0800 2009 | |
| |
Changelog.rdoc | Thu Jan 15 06:08:13 -0800 2009 | |
| |
License | Thu Jan 15 05:19:56 -0800 2009 | |
| |
Rakefile | Thu Jan 15 05:19:56 -0800 2009 | |
| |
Readme.rdoc | Thu Jan 15 05:23:42 -0800 2009 | |
| |
lib/ | Thu Jan 15 06:08:13 -0800 2009 | |
| |
teapot.gemspec | Thu Jan 15 06:08:13 -0800 2009 | |
| |
test/ | Thu Jan 15 05:19:56 -0800 2009 |
Readme.rdoc
teapot
It’s imperative to respond correctly to coffee machine BREW requests when you are, in fact, a teapot. This piece of Rack middleware will ensure you comply with HTCPCP/1.0: the Hyper Text Coffee Pot Control Protocol.
For more information see www.ietf.org/rfc/rfc2324.txt
INSTALL
sudo gem install toolmantim-teapot --source http://gems.github.com
USAGE
Simply require and use from your rackup file (e.g. config.ru):
require 'rubygems' require 'teapot' use Teapot
Your Rack application will now serve English Breakfast and respond with a 418 I’m a teapot if it receives any BREW or application/coffee-pot-command requests.
Tea connoisseurs may wish to refer to Teapot for a finer selection of tea.
BREWING
You can perform a BREW request using curl’s request method flag -X:
curl -i -X BREW myrackapp.com







