GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • fbbdev.it
  • About
  • Writings
  • Projects
  • Package
  • Docs

This view

  • Original page
  • New address

GeezerVison is showing fbbdev.it — node-fastcgi

node-fastcgi is a drop-in replacement for node’s http module (server only). It can be used to build FastCGI applications or to convert existing node applications to FastCGI.

The implementation is fully compliant with the FastCGI 1.0 Specification.

node-fastcgi is distributed under the open source MIT license.

Usage


var fcgi = require('node-fastcgi');

fcgi.createServer(function(req, res) {
  if (req.method === 'GET') {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end("It's working");
  } else {
    res.writeHead(501);
    res.end();
  }
}).listen();
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.