Fake Mirrors
GitHub
Example
System
Light
Dark
Search…
Preparing search index...
@famir/http-server
NativeHttpServer
Class NativeHttpServer
Native HTTP server implementation
Implements
HttpServer
Constructors
constructor
new
NativeHttpServer
(
config
:
Config
<
NativeHttpServerConfig
>
,
logger
:
Logger
,
templater
:
Templater
,
router
:
HttpServerRouter
,
contextFactory
:
HttpServerContextFactory
,
)
:
NativeHttpServer
Parameters
config
:
Config
<
NativeHttpServerConfig
>
logger
:
Logger
templater
:
Templater
router
:
HttpServerRouter
contextFactory
:
HttpServerContextFactory
Returns
NativeHttpServer
Methods
start
start
()
:
Promise
<
void
>
Start server
Returns
Promise
<
void
>
stop
stop
()
:
Promise
<
void
>
Stop server
Returns
Promise
<
void
>
Static
register
register
(
container
:
DIContainer
)
:
void
Register dependency
Parameters
container
:
DIContainer
Returns
void
Constructors
constructor
Methods
start
stop
register
GitHub
Example
Fake Mirrors
Loading...
Native HTTP server implementation