Merge pull request #17398 from sberan/websocket-http-request

websocket: Use correct type for incoming message
This commit is contained in:
Paul van Brenk
2017-06-27 14:38:49 -07:00
committed by GitHub
+3 -3
View File
@@ -181,7 +181,7 @@ export interface IExtension {
export declare class request extends events.EventEmitter {
/** A reference to the original Node HTTP request object */
httpRequest: http.ClientRequest;
httpRequest: http.IncomingMessage;
/** This will include the port number if a non-standard port is used */
host: string;
/** A string containing the path that was requested by the client */
@@ -222,7 +222,7 @@ export declare class request extends events.EventEmitter {
requestedProtocols: string[];
protocolFullCaseMap: { [key: string]: string };
constructor(socket: net.Socket, httpRequest: http.ClientRequest, config: IServerConfig);
constructor(socket: net.Socket, httpRequest: http.IncomingMessage, config: IServerConfig);
/**
* After inspecting the `request` properties, call this function on the
@@ -580,7 +580,7 @@ declare class client extends events.EventEmitter {
declare class routerRequest extends events.EventEmitter {
/** A reference to the original Node HTTP request object */
httpRequest: http.ClientRequest;
httpRequest: http.IncomingMessage;
/** A string containing the path that was requested by the client */
resource: string;
/** Parsed resource, including the query string parameters */