Connect is an extensible HTTP server framework for node, providing high performance "plugins" known as middleware.
Connect is bundled with over 14 commonly used middleware, including a logger, session support, cookie parser, and more. Be sure to view the 1.0 documentation.
connect.createServer()
The connect.createServer() method is now optional, and equivalent to connect(). For example:
connect.createServer(
connect.logger()
, connect.static(__dirname)
).listen(3000);
is the same as:
connect(
connect.logger()
, connect.static(__dirname)
).listen(3000);
When an options object is passed as the first argument it is assumed to be an https server:
connect({ options here }
connect.logger()
, connect.static(__dirname)
).listen(443);
Project information | |
---|---|
Name | connect |
Owner | senchalabs |
Language | PHP |
Description | Connect is a middleware layer for Node.js |
Information | View Readme.md |
Releases | |
---|---|
1.x | tar.gz | zip |