The options to construct the class.
Protected_Whether 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_A 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_The customization options for the middleware.
Protected Readonly_The service that serves a file.
The customization options.
Protected_Serves the HTML file to the response.
The response object generated by the application.
The function to call the next middleware.
Generates 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