============================================================
HTTP/TCP Web Framework Components
See the more recent gist instead.
The goals of this file are archaelogical, not architectural (in other words, I'm not trying to suggest anything in particular, just taking inventory of what we have.)
This inventory of modules was compiled from the following transects:
see https://gist.github.com/mikermcneil/2ed1cb5d47a4e937a059 for background
- https://github.com/balderdashy/sails/blob/master/lib/hooks/sockets/lib/interpreter/interpret.js#L99
- https://github.com/balderdashy/sails/blob/master/lib/router/req.js
- https://github.com/balderdashy/sails/blob/master/lib/router/res.js
- https://github.com/balderdashy/sails/blob/master/lib/router/index.js#L311
Here are the various modules, split up by category.
Modules that add a single method or property to the TCP socket prototype.
Module | Description |
---|---|
etc | ... |
Modules that DO NOTHING EXCEPT add a single method or property to the request prototype.
Module | Property | Description |
---|---|---|
expressjs/session | req.session |
Simple session middleware https://github.com/expressjs/session |
etc | req._______ |
Modules that DO NOTHING EXCEPT add a single method or property to the response prototype.
Module | Property | Description |
---|---|---|
etc | res._______ |
These modules are req/res/tcpsock utilities that provide some relevant functionality, but may or may not actually modify the req and res objects.
Module | Description |
---|---|
expressjs/finished | Execute a canonical Node callback when a request closes, finishes, or errors. https://github.com/expressjs/finished |
Modules which export a configurator function which returns a single middleware. Some of these modules also expose new or modified properties on the req
/res
objects. See the req.*
and req.*
columns.
Module | req.* |
res.* |
Description |
---|---|---|---|
expressjs/session | req.session | Simple session middleware https://github.com/expressjs/session | |
expressjs/timeout | Make the request time out after xmsif response hasn't been sent https://github.com/expressjs/timeout |
Modules that didn't fit any other category closely enough, or were hard to categorize because they wear so many hats.
Module | Description |
---|---|
senchalabs/connect | TODO |
visionmedia/express.../lib/response.js | Adds res.send , res.json , res.render , and others. https://github.com/strongloop/express/blob/master/lib/response.js |
etc | ... |