Skip to content
Myr

Removed "request" and "response" locals

Before adoption: this commit came in with the history the project adopted, so no landing records it.

sorry, changed my mind. easy enough to expose these if you want to, but they are to large by default

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f0df843 · Browse files · 2 files+0 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+0 added−8 removed

  • other:+0 added−8 removed

2 files+0 added−8 removed

modified:docs/guide.md-2 removed
1143 unmodified lines
1144Express also provides a few locals by default:11451146 - `settings` the app's settings object1147 - `filename` the view's filename1148 - `request` the request object1149 - `response` the response object1148 - `app` the application itself11491150This method is aliased as _app.locals()_.1151
181 unmodified lines
modified:lib/http.js-6 removed
89 unmodified lines
90 settings: this.settings91 , app: this92 });9394 // default dynamic locals95 this.dynamicHelpers({96 request: function(req, res){ return req; }97 , response: function(req, res){ return res; }98 });9994 // default development configuration95 this.configure('development', function(){96 this.enable('hints');97 });
397 unmodified lines