mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
ServerRequest headers is an object
http://nodejs.org/api/http.html#http_message_headers
This commit is contained in:
4
node/node.d.ts
vendored
4
node/node.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user