Listen for connections.
This method takes the same arguments
as node's http.Server#listen()
.
HTTP and HTTPS:
If you run your application both as HTTP
and HTTPS you may wrap them individually,
since your Connect "server" is really just
a JavaScript Function
.
var connect = require('connect')
, http = require('http')
, https = require('https');
var app = connect();
http.createServer(app).listen(80);
https.createServer(options, app).listen(443);
Utilize the given middleware handle
to the given route
,
defaulting to /. This "route" is the mount-point for the
middleware, when given a value other than / the middleware
is only effective when that segment is present in the request's
pathname.
For example if we were to mount a function at /admin, it would be invoked on /admin, and /admin/settings, however it would not be invoked for /, or /posts.
Generated using TypeDoc
Handle server requests, punting them down the middleware stack.