Constructors
constructor
- new HttpConnector(__namedParameters: ConnectorOptions): HttpConnector
Parameters
__namedParameters: ConnectorOptions
Methods
connect
- connect(server: Server, options?: ListenOptions): Promise<void>
Parameters
server: Server
Optional options: ListenOptions
Returns Promise<void>
handleRequest
- handleRequest(req: IncomingMessage, res: ServerResponse): void
Parameters
req: IncomingMessage
res: ServerResponse
Returns void
handleUpgrade
- handleUpgrade(req: IncomingMessage, socket: Socket, head: Buffer): void
Parameters
req: IncomingMessage
socket: Socket
head: Buffer
Returns void