var connect = require('connect');
var http = require('http');

var app = connect(); // HTTP::Server

app.use(function handler1(req, res){ // HTTP:RouteHandler
    res.setHeader('HEADER1', ''); // HTTP:HeaderDefinition
    req.cookies.get('foo');
});

var basicAuth = require('basic-auth-connect');
app.use(basicAuth('username', 'password'));

function getHandler() {
    return function (req, res){}
}
app.use(getHandler());

app.use(function(req,res){})
    .use(function(req,res){})
    .notUse(function(req,res){})
    .use(function(req,res){});

app.use(function (error, req, res, next){
    res.setHeader('HEADER2', '');
});
