mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #17398 from sberan/websocket-http-request
websocket: Use correct type for incoming message
This commit is contained in:
Vendored
+3
-3
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user