Commit Graph

128 Commits

Author SHA1 Message Date
TJ Holowaychuk
73092c9898 Perf: memoize parsed urls 2012-04-25 16:12:40 -07:00
TJ Holowaychuk
b5cee82604 doc typo 2012-04-18 17:42:13 -07: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
abe5cc7184 populate changelog 2012-04-15 11:40:31 -07:00
TJ Holowaychuk
54c3d5c113 reverse req.ips array 2012-03-29 16:39:32 -07:00
TJ Holowaychuk
6d0f9a37a2 req.ipds doesnt need "trust proxy"
not really anyway, if you use this
you better trust it :)
2012-03-29 16:36:36 -07:00
TJ Holowaychuk
dd468fbe9a Added req.ips 2012-03-29 16:26:59 -07:00
TJ Holowaychuk
04ecf04832 Added X-Forwarded-Proto support to req.secure 2012-03-29 16:17:44 -07:00
TJ Holowaychuk
ba570a9842 typo 2012-03-24 11:42:26 -07:00
TJ Holowaychuk
365a98d00f docs 2012-03-24 11:39:47 -07:00
TJ Holowaychuk
4e2677fe2c docs 2012-03-24 11:37:26 -07:00
TJ Holowaychuk
e4827b8d89 more docs for req.accepts(arr) 2012-03-23 18:03:19 -07:00
TJ Holowaychuk
298899d02c Added array support. Closes #1053 2012-03-23 17:58:41 -07:00
TJ Holowaychuk
4e332452b7 Added req.subdomains 2012-02-22 16:36:13 -08:00
TJ Holowaychuk
85d6964874 Removed req.header(field) 2012-02-07 08:32:08 -08:00
TJ Holowaychuk
fe27989a69 doc typo 2012-02-07 08:25:40 -08:00
TJ Holowaychuk
b04f3eeede refactored req.xhr 2012-02-07 08:24:58 -08:00
TJ Holowaychuk
6ab61d023f docs 2012-02-07 08:21:32 -08:00
TJ Holowaychuk
4d87efc771 Added "trust proxy" setting 2012-02-07 08:19:30 -08:00
TJ Holowaychuk
8c2c1240e1 removed old req.get() for now 2012-02-07 04:50:00 -08:00
TJ Holowaychuk
27e696b7b1 Added req.get() alias of req.header() 2012-02-07 04:49:12 -08:00
TJ Holowaychuk
bfba98f532 Removed req.header() defaultValue support 2012-02-07 04:47:51 -08:00
TJ Holowaychuk
2ba343d2b5 Added req.protocol() 2012-02-07 04:39:10 -08:00
TJ Holowaychuk
edfe50e713 Removed app.is() support 2011-12-30 15:10:51 -08:00
TJ Holowaychuk
26fb403ced Fixed req.is() with charsets 2011-12-30 15:04:41 -08:00
TJ Holowaychuk
014fb46449 Added req.is() tests 2011-12-30 15:01:34 -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
e49c482a3f req.body takes precedence 2011-12-07 08:41:22 -08:00
Tj Holowaychuk
28f32b9b8e Removed req.notify() 2011-11-24 15:12:25 -08:00
TJ Holowaychuk
9c7380efe4 Added req.acceptsLanguage() 2011-11-20 12:53:01 -08:00
TJ Holowaychuk
5e071a2e4b Added req.acceptsCharset() 2011-11-20 12:51:27 -08:00
TJ Holowaychuk
ff9b82c4f6 todo 2011-11-20 12:44:25 -08:00
TJ Holowaychuk
a0d0ac6cff docs 2011-11-20 12:43:06 -08:00
TJ Holowaychuk
b605a5de87 Changed: req.accepts() utilizing utils.accepts() 2011-11-20 12:42:06 -08:00
TJ Holowaychuk
499d3d6d78 Added req.acceptedCharsets 2011-11-19 22:16:16 -08:00
TJ Holowaychuk
e8c373694c Added req.acceptedLanguages 2011-11-19 22:12:09 -08:00
TJ Holowaychuk
a8fd8cb645 Added req.accepted 2011-11-19 22:08:26 -08:00
Tj Holowaychuk
d249868e07 no longer manipulate the req/res protos directly 2011-11-10 11:18:43 -08:00
Tj Holowaychuk
1a5636b199 case sensitivity test 2011-11-08 20:29:48 -08:00
Tj Holowaychuk
af46df7eae Removed req.isXMLHttpRequest
let me know if you actually use this :)
2011-11-08 20:28:55 -08:00
Tj Holowaychuk
1a1ed0ae45 semicolons 2011-10-13 09:46:48 -07:00
Tj Holowaychuk
d6fabb6f8e move getters down 2011-10-13 09:46:26 -07:00
Tj Holowaychuk
0e4e050b21 Added req.fresh and req.stale
lame usage example:

app.get('/user/:id', function(req, res){
  var id = req.params.id;

  res.set('ETag', 'user-' + id);

  if (req.fresh) return res.send(304);
  setTimeout(function(){
    res.send('large expensive user response ' + id);
  }, 2000);
});
2011-10-13 09:43:31 -07:00
Tj Holowaychuk
de17b285b1 Added req.secure 2011-10-11 09:45:01 -07:00
Tj Holowaychuk
77d8823261 misc refactoring 2011-09-06 15:19:05 -07:00
Tj Holowaychuk
edb1dc067a Fixed req.notify(), only escape args 2011-09-06 15:15:52 -07:00
Tj Holowaychuk
d10b7b43ea Added shorthand for the parsed request's pathname 2011-08-17 14:20:10 -07:00
Tj Holowaychuk
fd5d1076dc make req.notify() arity based 2011-08-08 16:45:22 -07:00
Tj Holowaychuk
82c78ec8f9 semi 2011-07-29 11:02:50 -07:00
Tj Holowaychuk
b1d4b71609 Refactored req.accepts() 2011-07-29 11:02:20 -07:00
Tj Holowaychuk
3ab37028fc Removed req.flash() references
it will be req.notify(), req.session.notifications etc
2011-07-15 13:09:38 -07:00
Tj Holowaychuk
4b8e08d202 another req.is() example 2011-07-15 11:52:43 -07:00
Tj Holowaychuk
9413d30396 Added req.notify() alias of req.flash() 2011-07-15 11:36:52 -07:00
Tj Holowaychuk
5982fa63c6 refactored req.flash() 2011-07-15 11:36:02 -07:00
Tj Holowaychuk
a4621a6418 refactored req.param() 2011-07-15 11:33:57 -07:00
Tj Holowaychuk
7eec21a5e6 examples 2011-07-15 11:31:47 -07:00
Tj Holowaychuk
96b72fe2f7 Renamed app.flashFormatters to app.formatters 2011-07-15 11:04:25 -07:00
Tj Holowaychuk
c7c9606e87 Added %d flash formatter 2011-07-15 10:57:15 -07:00
Tj Holowaychuk
6bb100d7fa docs for req.get() 2011-06-21 10:48:34 -07:00
Tj Holowaychuk
f13ea34de3 typo 2011-06-21 10:46:07 -07:00
Tj Holowaychuk
4d9647923e Added req.get(field, param) 2011-06-21 10:29:04 -07:00
Tj Holowaychuk
3dc53e105a misc refactoring 2011-06-06 08:22:35 -07:00
Tj Holowaychuk
6e633b31b4 return bool from req.is() 2011-05-19 09:48:19 -07:00
Tj Holowaychuk
b6aca36ad9 htmlEscape -> escape 2011-04-25 10:11:38 -07:00
Tj Holowaychuk
0c38098f02 tweak req.flash() failure message 2011-03-21 16:13:40 -07:00
Pau Ramon
be7068f569 Better error output when using flash without session middleware. 2011-03-21 16:12:55 -07:00
Roman Shtylman
b9e0d15878 check that this.params is valid before calling hasOwnProperty 2011-03-21 08:13:05 -07:00
Tj Holowaychuk
eb6ff62113 Fixed req.param() bug returning Array.prototype methods. Closes #552 2011-03-03 09:20:28 -08:00
Tj Holowaychuk
0cc6abf741 refactored req.is() 2011-03-01 14:34:36 -08:00
Tj Holowaychuk
fe266ae4fe misc refactoring 2011-03-01 14:32:59 -08:00
Tj Holowaychuk
2a7a5aeefe Renaming usage of old connect middleware 2011-03-01 10:59:09 -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
b65b0636aa Added req.header() Referrer / Referer special-case 2011-02-14 19:38:01 -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
3d597a554d moved files from lib/express/* to lib/ 2011-02-03 20:20:42 -08:00