ServerRequest headers is an object

http://nodejs.org/api/http.html#http_message_headers
This commit is contained in:
damianog
2013-09-07 20:31:45 +02:00
parent 2ff392fcae
commit 7b74efd634

4
node/node.d.ts vendored
View File

@@ -246,7 +246,7 @@ declare module "http" {
export interface ServerRequest extends events.NodeEventEmitter, stream.ReadableStream {
method: string;
url: string;
headers: string;
headers: any;
trailers: string;
httpVersion: string;
setEncoding(encoding?: string): void;
@@ -1083,4 +1083,4 @@ declare module "domain" {
export function bind(cb: (er: Error, data: any) =>any): any;
export function intercept(cb: (data: any) => any): any;
export function dispose(): void;
}
}