Page Contents

Home > @loopback/express > ExpressServer > (constructor)

ExpressServer.(constructor)

Constructs a new instance of the ExpressServer class

Signature:

constructor(config?: (HttpOptions & {
        basePath?: string | undefined;
        settings?: Record<string, unknown> | undefined;
    }) | (HttpsOptions & {
        basePath?: string | undefined;
        settings?: Record<string, unknown> | undefined;
    }) | undefined, parent?: Context);

Parameters

Parameter Type Description
config (HttpOptions & { basePath?: string | undefined; settings?: Record<string, unknown> | undefined; }) | (HttpsOptions & { basePath?: string | undefined; settings?: Record<string, unknown> | undefined; }) | undefined  
parent Context