Export 0.2.1
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / node_modules / grunt / node_modules / connect / lib / index.js
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  *  - [cookieParser](cookieParser.html) cookie parser
30  *  - [session](session.html) session management support with bundled MemoryStore
31  *  - [cookieSession](cookieSession.html) cookie-based session support
32  *  - [methodOverride](methodOverride.html) faux HTTP method support
33  *  - [responseTime](responseTime.html) calculates response-time and exposes via X-Response-Time
34  *  - [staticCache](staticCache.html) memory cache layer for the static() middleware
35  *  - [static](static.html) streaming static file server supporting `Range` and more
36  *  - [directory](directory.html) directory listing middleware
37  *  - [vhost](vhost.html) virtual host sub-domain mapping middleware
38  *  - [favicon](favicon.html) efficient favicon server (with default icon)
39  *  - [limit](limit.html) limit the bytesize of request bodies
40  *  - [query](query.html) automatic querystring parser, populating `req.query`
41  *  - [errorHandler](errorHandler.html) flexible error handler
42  *
43  * Links:
44  * 
45  *   - list of [3rd-party](https://github.com/senchalabs/connect/wiki) middleware
46  *   - GitHub [repository](http://github.com/senchalabs/connect)
47  *   - [test documentation](https://github.com/senchalabs/connect/blob/gh-pages/tests.md)
48  * 
49  */