Page Contents
Home > @loopback/http-server > HttpServer > (constructor)
HttpServer.(constructor)
Constructs a new instance of the HttpServer
class
Signature:
constructor(requestListener: RequestListener, serverOptions?: HttpServerOptions);
Parameters
Parameter | Type | Description |
---|---|---|
requestListener | RequestListener | |
serverOptions | HttpServerOptions | (Optional) |