UNPKG

2.55 kBJavaScriptView Raw
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 *
14 * http.createServer(app).listen(3000);
15 *
16 * Installation:
17 *
18 * $ npm install connect
19 *
20 * Middleware:
21 *
22 * - [basicAuth](https://github.com/expressjs/basic-auth-connect) basic http authentication
23 * - [cookieParser](https://github.com/expressjs/cookie-parser) cookie parser
24 * - [compress](https://github.com/expressjs/compression) Gzip compression middleware
25 * - [csrf](https://github.com/expressjs/csurf) Cross-site request forgery protection
26 * - [directory](https://github.com/expressjs/serve-index) directory listing middleware
27 * - [errorHandler](https://github.com/expressjs/errorhandler) flexible error handler
28 * - [favicon](https://github.com/expressjs/favicon) efficient favicon server (with default icon)
29 * - [json](https://github.com/expressjs/body-parser) application/json parser
30 * - [logger](https://github.com/expressjs/morgan) request logger with custom format support
31 * - [methodOverride](https://github.com/expressjs/method-override) faux HTTP method support
32 * - [responseTime](https://github.com/expressjs/response-time) calculates response-time and exposes via X-Response-Time
33 * - [session](https://github.com/expressjs/session) session management support with bundled MemoryStore
34 * - [static](https://github.com/expressjs/serve-static) streaming static file server supporting `Range` and more
35 * - [timeout](https://github.com/expressjs/timeout) request timeouts
36 * - [urlencoded](https://github.com/expressjs/body-parser) application/x-www-form-urlencoded parser
37 * - [vhost](https://github.com/expressjs/vhost) virtual host sub-domain mapping middleware
38 * - [bodyParser](bodyParser.html) extensible request body parser
39 * - [multipart](multipart.html) multipart/form-data parser
40 * - [cookieSession](cookieSession.html) cookie-based session support
41 * - [staticCache](staticCache.html) memory cache layer for the static() middleware
42 * - [limit](limit.html) limit the bytesize of request bodies
43 * - [query](query.html) automatic querystring parser, populating `req.query`
44 *
45 * Links:
46 *
47 * - list of [3rd-party](https://github.com/senchalabs/connect/wiki) middleware
48 * - GitHub [repository](http://github.com/senchalabs/connect)
49 *
50 */
\No newline at end of file