Udate the restify definition so that the request attributes path and href

are functions rather than string properties.
This commit is contained in:
Bret Little
2013-02-17 13:32:43 -07:00
parent baa2dc5651
commit 5a765895ca
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -49,9 +49,9 @@ function send(req, res, next) {
req.contentLength === 50;
req.contentType === 'test';
req.href === 'test';
req.href() === 'test';
req.id === 'test';
req.path === 'test';
req.path() === 'test';
req.query === 'test';
req.secure === true;
req.time === 50;
+2 -2
View File
@@ -11,10 +11,10 @@ interface Request {
getLogger: (component: string) => any;
contentLength: number;
contentType: string;
href: string;
href: () => string;
log: Object;
id: string;
path: string;
path: () => string;
query: string;
secure: bool;
time: number;