Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…href

are functions rather than string properties.
  • Loading branch information...
commit 5a765895ca32cde3cc6da635c7aeb78f72134817 1 parent baa2dc5
@blittle authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 restify/restify-test.ts
  2. +2 −2 restify/restify.d.ts
View
4 restify/restify-test.ts
@@ -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;
View
4 restify/restify.d.ts
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.