zibri
    Preparing search index...

    Class ZibriApplication

    A Zibri application.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    options: FullZibriApplicationOptions

    The options of which the application was build.

    server: Server = ...

    The underlying http server.

    Methods

    • Initializes the app.

      Parameters

      • H: typeof Handlebars

        The global handlebars instance, needed to provide some helpers used in templating.

      • handlebarComponentsDir: string = ...

        Directory where handlebars components reside. Defaults to assetService.assetsPath/templates/components.

      Returns Promise<void>

    • Gracefully shuts down the application.

      Parameters

      • Optionalsignal: "SIGHUP" | "SIGINT" | "SIGTERM"

        The signal that shuts down the application. Can be left empty if manually called.

      Returns Promise<void>

    • Starts on the given port.

      Parameters

      • port: number

        The port to start on.

      Returns Promise<void>

      When the app has already been started.

    • Parameters

      • handler: RequestHandler

      Returns void

    • Parameters

      Returns void

    • Parameters

      • ...handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

      Returns void

    • Parameters

      • path: `/${string}`
      • ...handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

      Returns void

    • Parameters

      • path: `/${string}`
      • handlers: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

      Returns void