The options to construct the class.
Protected
_fileWhether or not the file is ready to be served. In case the middleware uses an HTMLGenerator service, the file needs to be generated before being available, and that's why this flag exists.
Protected
Readonly
_getHTMLGeneratorA function to get a possible HTMLGenerator. This is injected as a "getter" to not interrupt the DIC "lifecycle": middlewares are initialized right when the app starts, and injecting a reference would force the service to be initialized too, even if a request is not being made.
Protected
_optionsThe customization options for the middleware.
Protected
Readonly
_sendThe service that serves a file.
The customization options.
Protected
_sendGenerates the middleware that serves the HTML file.
A very simple middleware service to send an HTML on a server response. The special 'feature' of this service is that it can be hooked up to an HTMLGenerator service and it will automatically server the file generated by it.
Prettierignore