Fake Mirrors
GitHub
Example
System
Light
Dark
Search…
Preparing search index...
@famir/http-server
HttpServerContextFactory
Interface HttpServerContextFactory
Represents a HTTP server context factory
interface
HttpServerContextFactory
{
createNormal
(
req
:
IncomingMessage
,
res
:
ServerResponse
,
state
:
HttpServerContextState
,
)
:
HttpServerContext
;
createWebSocket
(
ws
:
WebSocket
,
req
:
IncomingMessage
,
state
:
HttpServerContextState
,
)
:
HttpServerContext
;
}
Implemented by
NativeHttpServerContextFactory
Methods
create
Normal
createNormal
(
req
:
IncomingMessage
,
res
:
ServerResponse
,
state
:
HttpServerContextState
,
)
:
HttpServerContext
Create normal context
Parameters
req
:
IncomingMessage
res
:
ServerResponse
state
:
HttpServerContextState
Returns
HttpServerContext
create
Web
Socket
createWebSocket
(
ws
:
WebSocket
,
req
:
IncomingMessage
,
state
:
HttpServerContextState
,
)
:
HttpServerContext
Create websocket context
Parameters
ws
:
WebSocket
req
:
IncomingMessage
state
:
HttpServerContextState
Returns
HttpServerContext
Methods
create
Normal
create
Web
Socket
GitHub
Example
Fake Mirrors
Loading...
Represents a HTTP server context factory