express/test
Roman Shtylman b0da4b1a94 streaming view rendering
Allows for a view engine to return a stream upon being asked to render a
path. This allows for the engine to simply stream out data as it is
loaded from disk (or other IO location) without having to collect it all
first and then send it.

Fallback mode for all existing engines that call `fn` upon completion
takes over if no stream is returned. This works for both app.render and
res.render
2013-11-09 21:27:01 -05:00
..
acceptance refactor ejs example 2012-10-09 19:26:17 -07:00
fixtures Added test for res.sendfile() with non-GET. Closes #723 2011-11-24 12:34:47 -08:00
support updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
app.all.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
app.del.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
app.engine.js streaming view rendering 2013-11-09 21:27:01 -05:00
app.head.js Added optional app.head() support 2011-11-11 13:53:20 -08:00
app.js set the NODE_ENV to development for the development view cache test 2012-10-06 17:58:17 -04:00
app.listen.js Added app.listen() as a shortcut for http.createServer(app).listen() 2011-11-11 17:22:25 -08:00
app.locals.js remove app.locals.use and res.locals.use 2012-07-05 18:46:19 -07:00
app.options.js Revert "remove old OPTIONS default response" 2013-07-16 11:22:02 -07:00
app.param.js fix tests for should.js 2013-10-14 18:35:46 -07:00
app.render.js add "view" constructor setting to override view behaviour 2013-04-13 09:53:50 -07:00
app.request.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
app.response.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
app.router.js Added safe encodeURIcomponent to eliminate errors on malformed captures. 2013-09-16 14:57:31 -04:00
app.routes.error.js refactor routes.error tests 2012-10-09 19:09:12 -07:00
app.routes.js Added public app.routes. Closes #887 2012-05-02 16:19:41 -07:00
app.use.js removed "root" setting 2011-11-24 14:27:28 -08:00
config.env.js multi-env configure() callbacks 2011-11-08 17:15:09 -08:00
config.js Fixed app.set() with undefined 2011-12-15 09:00:39 -08:00
exports.js fix tests for should.js 2013-10-14 18:35:46 -07:00
middleware.basic.js res.status(code) test 2011-11-08 17:18:44 -08:00
mocha.opts mocha.opts 2011-12-20 17:37:06 -08:00
regression.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.accepted.js tests 2011-11-19 22:13:07 -08:00
req.acceptedCharsets.js Added req.acceptedCharsets 2011-11-19 22:16:16 -08:00
req.acceptedEncodings.js bump supertest to 0.8.1 2013-10-28 15:24:48 -07:00
req.acceptedLanguages.js Added req.acceptedLanguages 2011-11-19 22:12:09 -08:00
req.accepts.js fix test label typo 2013-09-16 23:34:16 +00:00
req.acceptsCharset.js Remove some superfluous trailing whitespace 2013-03-01 07:47:30 +00:00
req.auth.js Allow colons in passwords for req.auth 2013-01-06 03:02:40 -05:00
req.fresh.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.get.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.host.js fix req.host when no Host is present, return undefined 2013-05-09 09:06:11 -07:00
req.ip.js Added req.ip tests 2012-05-29 18:46:37 -07:00
req.ips.js Added req.ip 2012-05-29 18:46:07 -07:00
req.is.js Removed app.is() support 2011-12-30 15:10:51 -08:00
req.param.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.path.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.protocol.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.query.js Added req.query tests 2011-11-08 19:27:09 -08:00
req.range.js Added req.range(size) 2012-06-17 17:33:05 -07:00
req.route.js Added req.route test 2011-11-24 17:59:00 -08:00
req.secure.js add support for multiple X-Forwarded-Proto values. Closes #1646 2013-06-05 12:05:45 -07:00
req.signedCookies.js remove second signed cookie test 2013-09-16 23:33:42 +00:00
req.stale.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
req.subdomains.js fixes #1600 2013-09-19 10:27:21 -07:00
req.xhr.js case sensitivity test 2011-11-08 20:29:48 -08:00
res.attachment.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
res.charset.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
res.clearCookie.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
res.cookie.js Revert "fix res.cookie() tests" 2013-04-15 12:29:42 -07:00
res.download.js add res.download() content-disposition on error removal test 2012-07-13 09:24:09 -07:00
res.format.js res.format() now includes charset. Fixes #1744 2013-09-08 02:10:46 -04:00
res.get.js refactored res.get() tests 2012-05-10 13:59:27 -07:00
res.json.js Revert "remove charset from json responses. Closes #1631" 2013-08-27 13:48:18 -07:00
res.jsonp.js check existence of jsonp callback 2013-10-15 12:39:32 -07:00
res.links.js refactor res.links() 2013-09-07 15:26:12 -07:00
res.locals.js change res.sendfile() to use send() module 2012-07-13 08:58:40 -07:00
res.location.js Test location with leading ./ and containing .. 2013-11-02 02:28:54 +01:00
res.redirect.js Update tests expectancy of location headers 2013-11-02 02:28:49 +01:00
res.render.js adjust locals tests 2012-09-25 08:45:09 -07:00
res.send.js always send ETag when content-length > 0 2013-10-30 20:34:16 -07:00
res.sendfile.js be less picky with ENOENT errors in tests 2013-10-30 20:37:01 -07:00
res.set.js Allow setting an array of header values in the response 2013-01-22 18:32:22 -08:00
res.status.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
res.type.js updated tests to use "supertest" 2012-06-26 17:14:07 -07:00
res.vary.js add res.vary(). Closes #1682 2013-09-02 09:10:14 -07:00
Router.js add throwing when a non-function is passed to a route 2012-12-14 15:06:17 -08:00
utils.js fix long list params test 2013-04-13 09:07:48 -07:00