Support optional headers in response send / json calls

This commit is contained in:
James O'Cull
2015-12-29 14:30:24 -05:00
parent dc9dabe74a
commit 6ae08bfbab

View File

@@ -41,8 +41,8 @@ declare module "restify" {
header: (key: string, value ?: any) => any;
cache: (type?: any, options?: Object) => any;
status: (code: number) => any;
send: (status?: any, body?: any) => any;
json: (status?: any, body?: any) => any;
send: (status?: any, body?: any, headers?: { [header: string]: string }) => any;
json: (status?: any, body?: any, headers?: { [header: string]: string }) => any;
code: number;
contentLength: number;
charSet(value: string): void;