Greg Methvin
17bf04d1ef
Allow colons in passwords for req.auth
...
Passwords in basic auth can contain colons (as per RFC2617), while
usernames cannot, so assume everything after the colon is a password.
This makes req.auth return the correct value if the user uses a colon
in his password.
2013-01-06 03:02:40 -05:00
TJ Holowaychuk
d6cb449011
add "Basic" check to req.auth
2012-10-19 11:46:46 -07:00
TJ Holowaychuk
7bf4ad30fc
add req.auth test coverage
2012-10-19 11:44:44 -07:00
TJ Holowaychuk
b400814d00
Added req.auth
...
tests to come
2012-06-22 16:25:31 -07:00
TJ Holowaychuk
8f4cd13c89
docs
2012-06-17 19:00:41 -07:00
TJ Holowaychuk
7bfb58920a
docs
2012-06-17 18:08:35 -07:00
TJ Holowaychuk
2e324ccf5f
docs
2012-06-17 18:08:14 -07:00
TJ Holowaychuk
1a10ee76b3
update range-parser dep
2012-06-17 18:06:04 -07:00
TJ Holowaychuk
619e6349f6
ws
2012-06-17 17:48:52 -07:00
TJ Holowaychuk
b1ff68548f
add inline range example
2012-06-17 17:41:28 -07:00
TJ Holowaychuk
376b6c3bad
add note about inclusive ranges
2012-06-17 17:37:42 -07:00
TJ Holowaychuk
f4c8a59b17
Added req.range(size)
2012-06-17 17:33:05 -07:00
TJ Holowaychuk
c10223b803
GET / HEAD only for req.fresh
2012-06-15 16:09:32 -07:00
TJ Holowaychuk
d073e0aeb5
Added 2xx / 304 check to req.fresh
2012-06-15 16:03:20 -07:00
TJ Holowaychuk
f895516a2c
Added fresh dep
2012-06-10 12:21:03 -07:00
TJ Holowaychuk
895673141d
Fixed: expose connects mime module. Cloases #1165
2012-06-08 09:47:13 -07:00
TJ Holowaychuk
2b90cd7d51
Added req.host
2012-06-05 19:24:49 -07:00
TJ Holowaychuk
d5fde6a4b9
added test to illustrate req.params as an array
2012-06-05 19:02:28 -07:00
TJ Holowaychuk
99b2e0fa08
refactored req.param()
2012-06-05 18:59:26 -07:00
TJ Holowaychuk
ebcb1ca90e
Changed req.param() to check route first
...
body / query-string taking precedence is a little sketchy
but you should use this method sparingly, think of it
as PHPs $_REQUEST
2012-06-05 18:51:42 -07:00
TJ Holowaychuk
908e467548
docs
2012-06-02 20:04:51 -07:00
TJ Holowaychuk
910dae16ab
misc refactor
2012-05-29 18:51:08 -07:00
TJ Holowaychuk
d84d0b69ef
Added req.ip
2012-05-29 18:46:07 -07:00
TJ Holowaychuk
b694ba27be
Changed: dont reverse req.ips
...
parse them as-is. im impartial about
the ordering but this spares some CPU. if you
prefer the other way let me know
2012-05-29 18:41:00 -07:00
TJ Holowaychuk
e3cbac2d77
Fixed setting check for req.ips
2012-05-29 18:36:46 -07:00
TJ Holowaychuk
d9aea70ccc
removed file heading comments
2012-05-03 08:43:42 -07:00
TJ Holowaychuk
a376980a69
update headers
2012-04-25 21:49:43 -07:00
TJ Holowaychuk
8f8740028c
Fixed: use app.get() for all core settings
2012-04-25 21:40:53 -07:00
TJ Holowaychuk
18a6bbfd80
docs
2012-04-25 17:59:02 -07:00
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