A class which implements WebServerEngine. Can be one of the builtin engines (ExpressEngine, FastifyEngine) or a custom engine
A handler which is run when an error occurs while processing a request. When this handler is defined, all default error handling is skipped. If you want to observe errors without suppressing the default error handling, use onError instead.
Whether or not to hide exception details from the web response output
Connect-style middleware that should be run before the final request handler
A handler which is run when an error occurs while processing a request. After the handler is completed, the default error handling will proceed.
What protocols should be supported on incoming client connections If not specified, HTTP/2, SPDY and HTTP/1.1 will all be supported if an SSL certificate is provided. If not, then only HTTP/1.1 will be supported.
By default the requests being processed are reported via the logger. When silent is true, this is suppressed.
By default when an error occurs while processing a request, it is reported to the console for inspection. When silentErrors is true, this is suppressed.
Generated using TypeDoc
Specify the default handler for a request when no other route matches (aka 404). When explicitly set to
null
, no default handler will be used (useful when chaining the Alterior application into a larger application)