Http-teapot

http-teapot

Add support for RFC 2324 to any HTTP server.

P.S: Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0) was a April fools RFC ;) HTTP status code 418.

BTW if you are wondering why this made in to this list, http-teapot module is the 100,000th module to npm today!

Installation

1
npm install http-teapot

Usage

Just add http-teapot as a routing function.

Express example:

1
2
3
4
5
6
7
var teapot = require('http-teapot');
var express = require('express');
var app = express();

app.get('/teapot', teapot);

app.listen(3000);

GIF FTW!

http-teapot

Thanks to Thomas Watson Steen for implementing this RFC and giving us a teapot image ;)

Suggest a module

Comments