arnaucube
arnaucube/raspberryGPIOhtmlserverPublic Self-hosted repository
raspberryGPIOhtmlserver/node_modules/connect/lib/index.js
node_modules/connect/lib/index.jsRaw
 1
 2/**
 3 * Connect is a middleware framework for node,
 4 * shipping with over 18 bundled middleware and a rich selection of
 5 * 3rd-party middleware.
 6 *
 7 *     var app = connect()
 8 *       .use(connect.logger('dev'))
 9 *       .use(connect.static('public'))
10 *       .use(function(req, res){
11 *         res.end('hello world\n');
12 *       })
13 *      .listen(3000);
14 *     
15 * Installation:
16 * 
17 *     $ npm install connect
18 *
19 * Middleware:
20 *
21 *  - [logger](logger.html) request logger with custom format support
22 *  - [csrf](csrf.html) Cross-site request forgery protection
23 *  - [compress](compress.html) Gzip compression middleware
24 *  - [basicAuth](basicAuth.html) basic http authentication
25 *  - [bodyParser](bodyParser.html) extensible request body parser
26 *  - [json](json.html) application/json parser
27 *  - [urlencoded](urlencoded.html) application/x-www-form-urlencoded parser
28 *  - [multipart](multipart.html) multipart/form-data parser
29 *  - [timeout](timeout.html) request timeouts
30 *  - [cookieParser](cookieParser.html) cookie parser
31 *  - [session](session.html) session management support with bundled MemoryStore
32 *  - [cookieSession](cookieSession.html) cookie-based session support
33 *  - [methodOverride](methodOverride.html) faux HTTP method support
34 *  - [responseTime](responseTime.html) calculates response-time and exposes via X-Response-Time
35 *  - [staticCache](staticCache.html) memory cache layer for the static() middleware
36 *  - [static](static.html) streaming static file server supporting `Range` and more
37 *  - [directory](directory.html) directory listing middleware
38 *  - [vhost](vhost.html) virtual host sub-domain mapping middleware
39 *  - [favicon](favicon.html) efficient favicon server (with default icon)
40 *  - [limit](limit.html) limit the bytesize of request bodies
41 *  - [query](query.html) automatic querystring parser, populating `req.query`
42 *  - [errorHandler](errorHandler.html) flexible error handler
43 *
44 * Links:
45 * 
46 *   - list of [3rd-party](https://github.com/senchalabs/connect/wiki) middleware
47 *   - GitHub [repository](http://github.com/senchalabs/connect)
48 *   - [test documentation](https://github.com/senchalabs/connect/blob/gh-pages/tests.md)
49 * 
50 */