forked from soywiz-archive/typescript-node-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsend.d.ts
45 lines (39 loc) · 1.07 KB
/
send.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
///<reference path='node.d.ts' />
declare module "send" {
//import send = require("send");
function _send(req: any, path: string, options?: _send.Options): _send.SendStream;
module _send {
export interface Options {
start?: number;
end?: number;
}
export interface SendStream {
req: any;
path: string;
options: Options;
//constructor(req, path, options);
hidden(set): SendStream;
index(value: string): SendStream;
root(value: string): SendStream;
from(value: string): SendStream;
maxage(ms: number): SendStream;
//error(status, err) : SendStream;
//isMalicious() : SendStream;
//hasTrailingSlash() : SendStream;
//hasLeadingDot() : SendStream;
//isConditionalGET() : SendStream;
//removeContentHeaderFields() : SendStream;
//notModified() : SendStream;
//isCachable() : SendStream;
//onStatError(err) : SendStream;
//isFresh() : SendStream;
//redirect() : SendStream;
pipe(res);
send(path, stat);
//stream(path, options);
//type(path);
//setHeader(stat);
}
}
export = _send;
}