All Projects → watson → http-teapot

watson / http-teapot

Licence: MIT License
Add support for RFC 2324 to any HTTP server

Programming Languages

javascript
184084 projects - #8 most used programming language

http-teapot

Add support for RFC 2324 to any HTTP server.

Utah Teapot

build status

Installation

npm install http-teapot

or if you're going to use the cli

npm install http-teapot -g

Usage

Just add http-teapot as a routing function. It supports most routing modules including Express and router.

Express example:

var teapot = require('http-teapot');
var app = express();

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

Now, if you visit http://localhost:1337/teapot you must see a teapot ;)

CLI

There is also a built in HTTP server that you can start from the command line.

If you install the module globally you can run the server by running the http-teapot command.

Cheat codes

  • Rotate: Click+drag the mouse
  • Zoom: Hold down alt and scroll
  • Pan: Hold down ctrl and click+drag the mouse

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].