TJ Holowaychuk
ab75fa048e
refactor vhost example
2013-01-14 09:51:56 +01:00
TJ Holowaychuk
bb29da5980
refactor vhost example
2013-01-13 11:32:53 -08:00
Julian Gruber
a4d7b75129
implemented res.location
2013-01-13 16:07:11 +01:00
Greg Methvin
39ee6f8e79
Don't mangle the options object in res.cookie
...
Make a copy of the cookie options before mutating it to pass to
cookie.serialize. This prevents unexpected things from happening when
we try to use the same options object multiple times.
Also add a test to verify that the options object does not change
after a request is made.
2013-01-03 02:00:15 -05:00
Guillermo Rauch
64a234958a
fix jsonp whitespace escape. Closes #1132
2012-12-28 10:24:55 -07:00
Alex Weeks
a1e42ac33f
Explicitly remove Transfer-Encoding header from 204 and 304 responses
...
Per RFC 2616 §10.3.6 & §10.2.5 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html ) "The [204/304] response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields."
2012-12-19 10:53:17 -08:00
TJ Holowaychuk
9bd86cdddc
Revert "add 'etag' option"
...
This reverts commit 6f6eec7d8d .
2012-12-06 15:15:49 -08:00
Max Riveiro
6f6eec7d8d
add 'etag' option
2012-12-05 16:49:09 -08:00
TJ Holowaychuk
c8526932f3
Merge branch 'master' of github.com:visionmedia/express
2012-11-21 08:43:13 -08:00
Greg Methvin
ea5e254c7d
Escape URLs in text/plain res.redirect response
...
Escape the URL printed by res.redirect using URL encoding. This
prevents some browsers (primarily old versions of IE) from attempting
to sniff the Content-Type and evaluate it as HTML, which causes a
cross-site scripting vulnerability.
2012-11-21 02:22:37 -05:00
TJ Holowaychuk
ab9c275bde
fix cookie max-age
...
the cookie module we depend on never used to
set this value, however now it does :)
2012-11-13 09:08:37 -08:00
Dmitry Bochkarev
6b309a4457
remove connect.static.send import from response.js
2012-11-08 12:43:38 +05:00
TJ Holowaychuk
2d49c0d1f3
Merge branch 'master' of github.com:visionmedia/express
2012-11-04 12:28:53 -08:00
TJ Holowaychuk
612fc47044
update connect
2012-11-01 17:27:33 -07:00
Roman Shtylman
dadf57cc8b
remove unused variables
...
Tests and examples with unused variables are unchanged.
2012-10-27 16:04:00 -04:00
TJ Holowaychuk
c29cfa823d
change res.redirect() to utilize a pathname-relative Location again. Closes #1382
...
nginx does not seem to set Host correctly,
though Location should be relative as per RFC
myself nor anyone else can report a client
that does not handle relative correctly so
this will be fine until then
2012-10-23 14:08:18 -07:00
TJ Holowaychuk
b3936b96e5
add cb && cb(payload) to res.jsonp(). Closes #1374
2012-10-16 11:57:37 -07:00
TJ Holowaychuk
56ffab045e
add backwards compat for res.redirect() status. Closes #1336
2012-09-26 09:07:22 -07:00
TJ Holowaychuk
f0d5b3b368
remove non-primitive string support for res.send()
...
kinda silly.. valueOf() before if you happen to use
boxed strings, otherwise it is unfair that dont support
other boxed primitives all over, and quite frankly no one does
2012-09-26 09:04:26 -07:00
TJ Holowaychuk
88072a56ea
refactor
2012-09-26 09:01:55 -07:00
TJ Holowaychuk
0d3a637389
add support for res.json() to retain previously defined Content-Types. Closes #1349
2012-09-26 09:00:52 -07:00
TJ Holowaychuk
8edf358739
refactor res.format(), dont pass "default" to req.accepts()
2012-09-03 16:16:46 -07:00
TJ Holowaychuk
a6caa267bd
add res.jsonp(). Closes #1307
...
this also removes the jsonp
2012-08-30 09:29:43 -07:00
TJ Holowaychuk
f2f09767fb
add etag util
2012-08-30 08:27:57 -07:00
TJ Holowaychuk
89c5affc3b
fix jsonp callback char restrictions
2012-08-28 18:11:49 -07:00
Tony Edwards
0217e6ce96
Fix signed cookie prefix
...
Update res.cookie to prefix signed cookies with 's:'
2012-08-13 20:01:17 -07:00
TJ Holowaychuk
6bebe0837f
refactor res.render() to prevent clobbering "locals"
2012-08-11 15:04:54 -07:00
TJ Holowaychuk
bac0c64633
escape res.redirect() link
2012-08-02 19:41:37 -07:00
TJ Holowaychuk
214f913b0c
merge
2012-07-24 13:28:13 -07:00
Ruben Verborgh
8050308706
Remove socket error handler if file was sent successfully.
2012-07-24 11:57:02 +02:00
TJ Holowaychuk
8f4e61a474
fix res.render docs
2012-07-20 17:22:21 -07:00
TJ Holowaychuk
a93d375acc
add res.redirect("//foo.com") support
2012-07-18 09:29:11 -07:00
TJ Holowaychuk
d66f0e5eb9
change res.redirect() to use scheme-relative urls
2012-07-18 09:07:21 -07:00
TJ Holowaychuk
ab61837885
change res.sendfile() to use send() module
2012-07-13 08:58:40 -07:00
riadh
5426eb0b62
add "jsonp callback name" setting
2012-07-06 08:53:31 -07:00
TJ Holowaychuk
4f7c4d1051
remove app.locals.use and res.locals.use
...
there are a few reasons for this:
a) less API, simpler implementation ...
b) difficult to inherit cleanly from subapps
c) effectively the same as parallelized middleware (use connect-parallel for example)
lastly this api in a sense promotes some obscure uses since
they may be scattered throughout rather than explicitly
given to specific routes or used globally as middleware etc
2012-07-05 18:46:19 -07:00
TJ Holowaychuk
96e4014a70
Replace res.send() with res.send = require("response-send")
2012-07-03 21:09:17 -07:00
TJ Holowaychuk
2e8d44b444
docs
2012-06-27 13:36:12 -07:00
TJ Holowaychuk
70d68419b0
Added res.json(obj, status) support back for BC
2012-06-27 13:34:53 -07:00
TJ Holowaychuk
3c0c96114f
Added res.send(body, status) support back for backwards compat
2012-06-21 16:37:26 -07:00
TJ Holowaychuk
362c96c8c1
refactor res.redirect() relative check
2012-06-21 08:25:43 -07:00
TJ Holowaychuk
e6129d8ba5
Added res.links(obj)
2012-06-17 16:34:42 -07:00
TJ Holowaychuk
d2baf11b8a
docs
2012-06-17 13:21:13 -07:00
TJ Holowaychuk
82b5b12ca7
Added .default() support to res.format()
2012-06-17 13:15:55 -07:00
TJ Holowaychuk
d073e0aeb5
Added 2xx / 304 check to req.fresh
2012-06-15 16:03:20 -07:00
TJ Holowaychuk
ce7293de13
misc
2012-06-15 15:44:44 -07:00
TJ Holowaychuk
108e66c24b
Fixed res.send() freshness check, respect res.statusCode
2012-06-15 15:42:46 -07:00
TJ Holowaychuk
640cf4ca21
Changed: res.send() always checks freshness
2012-06-15 11:38:51 -07:00
TJ Holowaychuk
0acee67339
Merge branch 'master' of github.com:visionmedia/express
2012-06-08 09:47:56 -07:00
TJ Holowaychuk
895673141d
Fixed: expose connects mime module. Cloases #1165
2012-06-08 09:47:13 -07:00
Dan Neumann
c39a398d83
Removed extra "of" in res.set comment.
2012-06-07 00:17:45 -05:00
TJ Holowaychuk
ebf60d2340
coerce res.cookie values to strings
2012-06-06 12:34:51 -07:00
TJ Holowaychuk
02d43846f6
fixing cookies for connect 2.3.1
2012-06-06 12:25:14 -07:00
TJ Holowaychuk
fd42b5c42c
mention res.format() callback
2012-06-01 09:15:35 -07:00
TJ Holowaychuk
1311f2ac25
Fixed res.redirect() 406. Closes #1154
2012-06-01 09:14:27 -07:00
TJ Holowaychuk
1150a88001
Added { signed: true } option to res.cookie()
2012-05-27 11:51:32 -07:00
TJ Holowaychuk
5840b42f4a
Added res.download() tests
2012-05-10 17:11:43 -07:00
TJ Holowaychuk
df2584cc3b
Added: allow [] in jsonp callback. Closes #1128
2012-05-09 09:39:52 -07:00
TJ Holowaychuk
d9aea70ccc
removed file heading comments
2012-05-03 08:43:42 -07:00
TJ Holowaychuk
dd33ef2eb6
Added res.locals.use(). Closes #1120
2012-05-03 08:42:18 -07:00
TJ Holowaychuk
1a3e40d818
Changed: res.send() only set ETag when not previously set
2012-05-02 16:20:35 -07:00
TJ Holowaychuk
c0a68fcd0d
Added Buffer ETag support to res.send()
2012-04-28 20:00:30 -07:00
TJ Holowaychuk
809e0b8c92
merged
2012-04-27 10:46:27 -07:00
TJ Holowaychuk
a58e3deac2
Added conditional-GET support to res.send()
2012-04-27 10:44:39 -07:00
TJ Holowaychuk
7c2e1ad0ed
.contentType -> .type() in core
2012-04-26 14:32:28 -07:00
TJ Holowaychuk
67ddb429e3
Added: coerce res.set() values to strings
...
if you use res.get() this can bite you in the ass
if you set an etag to a number for example :)
good times
2012-04-26 13:52:37 -07:00
TJ Holowaychuk
a376980a69
update headers
2012-04-25 21:49:43 -07:00
TJ Holowaychuk
cf7d710bc1
refactored res.sendfile()
2012-04-25 21:48:19 -07:00
TJ Holowaychuk
8f8740028c
Fixed: use app.get() for all core settings
2012-04-25 21:40:53 -07:00
TJ Holowaychuk
b809041894
refactored res.send()
2012-04-25 09:38:59 -07:00
Pierre Matri
0f585931a4
Make string object behave like string literals with res.send
2012-04-22 13:49:50 +02:00
TJ Holowaychuk
27b1b5e3b3
docs
2012-04-16 08:53:16 -07:00
TJ Holowaychuk
5fa2f89542
Added res.header() and req.header() aliases for BC
2012-04-16 08:31:30 -07:00
TJ Holowaychuk
7e81cad0bf
Added new dox API docs
2012-04-15 21:01:17 -07:00
TJ Holowaychuk
12e087820c
Added: res.format() sets Vary: Accept
2012-04-12 20:11:15 -07:00
TJ Holowaychuk
8dc001567b
removed res.cache()
...
too specific
2012-04-12 19:46:53 -07:00
TJ Holowaychuk
24a4e95ffe
Changed to allow extname or type/subtype only. Closes #1072
2012-04-10 12:19:34 -07:00
TJ Holowaychuk
ba413ee98d
added another res.redirect() example
2012-04-04 08:43:12 -07:00
TJ Holowaychuk
298899d02c
Added array support. Closes #1053
2012-03-23 17:58:41 -07:00
TJ Holowaychuk
533b31237c
optimize res.format()
2012-02-23 10:59:54 -08:00
TJ Holowaychuk
812a470122
docs
2012-02-23 10:58:57 -08:00
TJ Holowaychuk
eb3105ef25
Added extname support to res.format(). Closes #1024
2012-02-23 10:58:06 -08:00
TJ Holowaychuk
ffcaa04d2c
renamed res.respondTo() to res.format()
...
since you are not really responding with it,
its basically as switch
2012-02-22 19:59:52 -08:00
TJ Holowaychuk
a47660ba67
refactored res.redirect() with respondTo()
2012-02-22 19:58:36 -08:00
TJ Holowaychuk
bdfa6d1fe7
Added: res.respondTo() defaults the content-type
2012-02-18 17:23:02 -08:00
TJ Holowaychuk
b565e258cb
Added res.respondTo(obj)
2012-02-18 17:13:40 -08:00
TJ Holowaychuk
76fd462bcc
Removed res.header(field, value)
2012-02-07 08:30:27 -08:00
TJ Holowaychuk
c44f01879f
utilize res.set() internally
2012-02-07 08:28:40 -08:00
TJ Holowaychuk
4d87efc771
Added "trust proxy" setting
2012-02-07 08:19:30 -08:00
TJ Holowaychuk
8de3ad50b2
refactored res.redirect() with req.protocol()
2012-02-07 04:43:35 -08:00
TJ Holowaychuk
ff92afa557
Added "json replacer" and "json spaces" settings. Closes #996 [credit to jed]
2012-02-07 03:30:34 -08:00
TJ Holowaychuk
386a9e88b4
removed old tests
2011-12-17 13:43:51 -08:00
Tj Holowaychuk
5757f875f2
Added X-Forwarded-Proto support to res.redirect(). Closes #927
2011-12-08 12:45:46 -08:00
Tj Holowaychuk
88f154fecd
Added support for .. in redirects as well
2011-12-06 16:44:15 -08:00
Tj Holowaychuk
489265e3ca
Added support for ./ in redirects
2011-12-06 16:32:48 -08:00
Tj Holowaychuk
1cda0a96ca
Removed redirect "home"
2011-12-06 16:13:42 -08:00
Tj Holowaychuk
43295289bf
Removed app.redirect()
2011-12-06 16:04:06 -08:00
Tj Holowaychuk
0f72ca823b
docs
2011-12-06 15:58:56 -08:00
Tj Holowaychuk
41786bc776
misc
2011-12-06 15:54:25 -08:00
Tj Holowaychuk
cca5d7ebbf
more tests
2011-12-06 15:53:17 -08:00
Tj Holowaychuk
43c8764465
Added relative redirect support. Closes #920
2011-12-06 15:50:08 -08:00
Tj Holowaychuk
a1e325a2d9
use app.path() in res.redirect()
2011-12-06 15:40:17 -08:00
Tj Holowaychuk
1d0a56b673
removed uses of "root"
2011-11-24 14:33:23 -08:00
Tj Holowaychuk
87b991c076
removed "root" setting
...
screw it, no one will understand anyway
2011-11-24 14:27:28 -08:00
TJ Holowaychuk
be52f38d8f
fixed downloads example
2011-11-20 11:43:40 -08:00
Tj Holowaychuk
f96102224c
refactoring
2011-11-10 15:04:44 -08:00
Tj Holowaychuk
bf87d626eb
docs
2011-11-10 15:01:22 -08:00
Tj Holowaychuk
e21a79dc61
Added res.cache() method
2011-11-10 15:00:50 -08:00
Tj Holowaychuk
caec590fe1
Added res.cache(str)
2011-11-10 14:54:23 -08:00
Tj Holowaychuk
61ce6c59c2
misc
2011-11-10 14:48:00 -08:00
Tj Holowaychuk
58eddd5ab4
Added res.signedCookie() and tests. Closes #880
2011-11-10 12:14:33 -08:00
Tj Holowaychuk
7ac857acef
Added JSON cookie support & tests. Closes #879
2011-11-10 12:04:21 -08:00
Tj Holowaychuk
d249868e07
no longer manipulate the req/res protos directly
2011-11-10 11:18:43 -08:00
Tj Holowaychuk
7d42ad00ff
Removed "status" and "charset" options
2011-11-10 07:47:04 -08:00
Tj Holowaychuk
f68ba2ef35
refactoring
2011-11-09 16:56:57 -08:00
Tj Holowaychuk
a95a0ab5f9
using connects error code util
2011-11-09 16:27:48 -08:00
Tj Holowaychuk
30911f4a75
Added failing res.sendfile() test for 403 + callback
2011-11-09 16:14:38 -08:00
Tj Holowaychuk
c9f184c8d5
Added res.sendfile() ENOENT test
2011-11-09 16:11:46 -08:00
Tj Holowaychuk
2f762265a8
Added forbidden tests
2011-11-09 16:03:42 -08:00
Tj Holowaychuk
bea74b7711
Fixed res.sendfile() 404s
2011-11-09 15:54:51 -08:00
Tj Holowaychuk
40f8202402
utilize res.headerSent from connect
2011-11-09 15:38:48 -08:00
Tj Holowaychuk
4b0b55c1b7
misc refactoring
2011-11-09 15:33:54 -08:00
Tj Holowaychuk
43d9f6ea17
tweak res.redirect() mount route logic
2011-11-08 18:59:40 -08:00
Tj Holowaychuk
1faba1302f
tmp fix
2011-11-08 18:51:15 -08:00
Tj Holowaychuk
55ee0a0934
Added relative redirect test
2011-11-08 18:46:23 -08:00
Tj Holowaychuk
bee0496cb1
Fixed res.cookie() path default
2011-11-08 18:28:22 -08:00
Tj Holowaychuk
0f2f3d4e29
Fixed res.clearCookie(), default path to "root" setting
2011-11-08 18:25:21 -08:00
Tj Holowaychuk
b433550556
refactored res.render()
2011-10-14 08:46:02 -07:00
Tj Holowaychuk
de17b285b1
Added req.secure
2011-10-11 09:45:01 -07:00
Tj Holowaychuk
73f1da2ff7
Added replacement for dynamic locals. Closes #788
2011-10-09 13:01:32 -07:00
Tj Holowaychuk
fed7fa4cd2
removed old parseRange util
2011-10-07 13:56:14 -07:00
Tj Holowaychuk
98e2c0522f
merging res.locals
2011-10-07 13:50:31 -07:00
Tj Holowaychuk
ae11d83684
typo
2011-10-07 13:31:12 -07:00
Tj Holowaychuk
aab9b08ec2
added charset option back
2011-10-07 13:30:33 -07:00
Tj Holowaychuk
31ff7db019
added status support back
2011-10-07 13:29:25 -07:00
Tj Holowaychuk
c40c54fbee
request-level render()
2011-10-07 13:27:43 -07:00
Tj Holowaychuk
021655a10a
Added support for res.set(obj). Closes #834
2011-10-05 14:34:00 -07:00
Tj Holowaychuk
e301d43704
Changed res.redirect() signature to accept status first. Closes #832
...
to match the others
2011-10-05 14:24:57 -07:00
Tj Holowaychuk
54c1a208c3
Added res.type() alias of res.contentType()
2011-09-28 10:27:13 -07:00
Tj Holowaychuk
d3937b9a61
Fixed res.redirect() HEAD support
2011-09-07 10:03:17 -07:00
Tj Holowaychuk
2c734e2e4c
refactored res.send()
2011-09-07 10:02:27 -07:00
Tj Holowaychuk
d2df055abe
fixed res.sendfile() 404 support
2011-08-18 15:59:35 -07:00
Tj Holowaychuk
d3ccdbcf72
build res.download() on top of res.sendfile()
...
like it should have always been
2011-08-18 15:43:19 -07:00
Tj Holowaychuk
7a476fc964
make res.sendfile() more like res.download(). Closes #774
2011-08-18 15:38:22 -07:00
Tj Holowaychuk
5da28be2b2
refactored res.sendfile()
2011-08-18 15:28:19 -07:00
Tj Holowaychuk
e9abe1b846
Merged basepath setting. Closes #813
2011-08-17 10:13:25 -07:00
Tj Holowaychuk
3c2139b0c3
Fixed res.redirect() on windows due to join() usage. Closes #808
2011-08-15 13:47:07 -07:00
Tj Holowaychuk
c8c6aa2a1f
Added res.get(field) as an alternative to res.header(field)
2011-08-10 14:15:37 -07:00
Tj Holowaychuk
19a1a22e63
Added res.set(field, val) as an alternative to res.header()
2011-08-10 14:13:36 -07:00
Tj Holowaychuk
c35cd7fcb7
Changed res.{send,json}() status code to the first arg at all times
2011-08-04 13:30:12 -07:00
Tj Holowaychuk
bb9d50579b
docs
2011-08-04 12:01:11 -07:00
Tj Holowaychuk
54d37512f5
Refactored res.header()
2011-08-03 20:00:39 -07:00
Tj Holowaychuk
b1d4b71609
Refactored req.accepts()
2011-07-29 11:02:20 -07:00
Tj Holowaychuk
c631eb43e3
Fixed 204 / 304 responses
2011-07-29 09:31:45 -07:00
Tj Holowaychuk
376bedf624
Changed res.send(null) responds with empty string
...
previously you would just get "null",
which is fine for res.json() but probably
not the best result for res.send()
2011-07-29 09:30:35 -07:00
Tj Holowaychuk
5ac5352e33
Fixed [23]04 support
2011-07-22 08:35:33 -07:00
Tj Holowaychuk
6bd518241a
refactored res.redirect() slightly
2011-07-15 11:56:39 -07:00
Tj Holowaychuk
a3cddb856f
Changed res.{cookie,clearCookie}() return res
2011-07-15 11:55:03 -07:00
Tj Holowaychuk
41568b7f2a
chainable res.header()
2011-07-15 10:47:38 -07:00
Tj Holowaychuk
d853f6cf0e
fixed some tests
2011-07-15 10:38:19 -07:00
Tj Holowaychuk
bcfcce32d3
Removed header field support
2011-07-15 10:38:19 -07:00
Tj Holowaychuk
9a8b86872d
Replaced res.local[s]() with res.locals function. Closes #757
2011-07-15 10:01:31 -07:00
Tj Holowaychuk
7237a3c3b6
app.local() and res.local() return for chaining
2011-07-14 12:59:14 -07:00
Tj Holowaychuk
f98896f6d7
Added app.local(name, val)
2011-07-14 12:59:14 -07:00
Tj Holowaychuk
232b6ab7ef
Removed res.send() with no args support for 204
...
just use:
res.send(204)
2011-07-14 12:59:13 -07:00
Tj Holowaychuk
3d2676d013
Removed res.helpers() alias of res.locals()
2011-07-14 12:59:13 -07:00
Tj Holowaychuk
60d16eab77
Revert "removed jsonp stripping"
...
This reverts commit 0ae18bca60 .
2011-07-06 20:14:42 -07:00
Tj Holowaychuk
0ae18bca60
removed jsonp stripping
...
I cannot recall why I added this, doesnt make
sense to me now haha.
2011-07-06 09:45:21 -07:00
Tj Holowaychuk
2aaf0defe7
res.send() using res.json()
2011-07-06 09:32:16 -07:00
Tj Holowaychuk
73ea5cd7ee
Added res.json() JSONP support. Closes #737
2011-07-06 09:31:37 -07:00
Tj Holowaychuk
ee4471b345
when cookie path === null dont default it
2011-07-04 13:51:08 -07:00
Tj Holowaychuk
09c9452e5c
Changed; default cookie path to "home" setting. Closes #731
2011-07-04 13:18:50 -07:00
Tj Holowaychuk
9477c9b516
docs for res.status()
2011-06-28 09:32:28 -07:00
Tj Holowaychuk
b04be51848
Added chainable res.status(code)
...
ex:
res.status(500).send("lame")
2011-06-28 09:32:03 -07:00
Tj Holowaychuk
1386f80ae5
Added res.json() and tests
2011-06-28 09:11:54 -07:00
Tj Holowaychuk
9028cacfd1
Fixed; ignore body on 304. Closes #701
...
should do the trick
2011-06-08 12:40:07 -07:00
Tj Holowaychuk
490584c8bc
misc refactor
2011-06-06 09:20:29 -07:00
Tj Holowaychuk
0cbb1f661c
typo
2011-06-06 08:55:30 -07:00
Tj Holowaychuk
9d498ba3f1
misc
2011-05-23 16:59:16 -07:00
Tj Holowaychuk
70e6baf6fc
misc refactoring
2011-05-16 09:32:53 -07:00
Tj Holowaychuk
c6d76086e2
Fixed res.sendfile() bug preventing the transfer of files with spaces
...
params are decoded so we need to encode before passing to send() which then
in turn decodes it again, however nodes url module chokes on the spaces.
2011-05-08 10:52:16 -07:00
Tj Holowaychuk
aa6858189c
misc refactor
2011-04-23 18:54:49 -07:00
Tj Holowaychuk
e4c840f6b8
Added res.helpers() as alias of res.locals()
...
to match app.locals() / app.helpers()
2011-04-20 15:26:22 -07:00
Daniel Shaw
3afbcd0acf
JSON and JSONP default to UTF-8 in the same way as HTML. Closes #632 .
...
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
2011-04-20 09:00:02 -07:00
Daniel Shaw
8f054dbcaf
JSON and JSONP default to UTF-8 in the same way as HTML. Introduces app.set('charset') to set charset default at the application level. Closes #632 .
...
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
2011-04-20 09:00:02 -07:00
Tj Holowaychuk
dc02b0d5ae
Added options support to res.clearCookie()
2011-04-17 16:37:16 -07:00
Aaron Heckmann
e0bc5711b8
auto set Content-Type in res.attachement
...
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
2011-04-14 13:48:22 -07:00
Tj Holowaychuk
759a57bdb6
Added second callback support for res.download() connection errors
...
since you can no longer respond, it will be helpful to have separate callbacks
2011-04-11 09:44:19 -07:00
Tj Holowaychuk
1abb674a07
temp fix for nodes res.removeHeader() after sent "bug"
2011-04-11 09:14:11 -07:00
Aaron Heckmann
673ba22555
res.send(undefined) returns a 204
...
closes #600
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
2011-03-29 08:52:36 -07:00
Tj Holowaychuk
b7232f38f3
Added res.send(bool) support
...
application/json
2011-03-21 10:34:04 -07:00
Tj Holowaychuk
9c9e2afade
refactored res.redirect()
2011-03-18 08:49:46 -07:00
Tj Holowaychuk
a254e64bdb
Changed; res.locals() without object returns the locals
2011-03-17 14:50:35 -07:00
Tj Holowaychuk
0b1378a539
Added res.locals(obj)
2011-03-17 12:13:59 -07:00
Tj Holowaychuk
4874404701
typo
2011-03-17 11:33:35 -07:00
Tj Holowaychuk
5da01633fd
Fixed SlowBuffer support. Closes #584
2011-03-17 10:37:34 -07:00
Tj Holowaychuk
3a1fe1e295
Fixed; default charset to utf-8 instead of utf8 for lame IE [reported by NickP]
2011-03-11 16:34:41 -08:00
Tj Holowaychuk
c92e193916
Fixed res.redirect(). RFC states absolute
2011-03-09 15:18:22 -08:00
Tj Holowaychuk
acbf224277
default res.send() string charset to utf8
2011-03-09 10:42:14 -08:00
Tj Holowaychuk
4c274c524d
Added res.cookie() maxAge support
2011-03-03 15:27:03 -08:00
Tj Holowaychuk
99dcf7508f
Added res.redirect() mount test
2011-03-02 15:52:41 -08:00
Tj Holowaychuk
9bf823d893
Added mount support for res.redirect(), now respects the mount-point
2011-03-02 15:37:12 -08:00
Tj Holowaychuk
3661922bb0
refactored res.send()
2011-03-02 12:39:39 -08:00
Tj Holowaychuk
0704f149be
misc
2011-03-02 12:28:24 -08:00
Tj Holowaychuk
9b1cc75b36
res.download() and res.sendfile() using connect now
2011-03-02 09:41:21 -08:00
Tj Holowaychuk
59a74ecce4
refactoring to use connects static server
2011-03-01 15:42:42 -08:00
Tj Holowaychuk
50521281ce
utilizing nodes progressive response header api
2011-03-01 14:40:46 -08:00
Tj Holowaychuk
770f05c060
styling
2011-02-23 15:41:59 -08:00
Tj Holowaychuk
6993a27d8e
refactored res.redirect() with res.req.header() for referrer
2011-02-23 15:39:06 -08:00
Tj Holowaychuk
d37ad85f72
replaced connect.utils.mime() with mime module
2011-02-23 15:23:08 -08:00
Tj Holowaychuk
07eb66c205
Fixed res.download() callback, passing stream. Closes #528
...
should be able to figure something out with this.
at very least use redis or something with INCR/DECR to
keep a count on active downloads
2011-02-10 08:57:53 -08:00
Tj Holowaychuk
0e790e6fb5
using Stream#pipe() instead of sys.pump()
2011-02-10 08:50:11 -08:00
Tj Holowaychuk
99820e7edc
Refactored req/res proto assignments
...
since the names may change in the near future (is suspect at least)
due to inconsistancies
2011-02-03 21:05:04 -08:00
Tj Holowaychuk
6a03a92f5f
Refactored res.header()
2011-02-03 21:03:27 -08:00
Tj Holowaychuk
3d597a554d
moved files from lib/express/* to lib/
2011-02-03 20:20:42 -08:00