Kernel Middleware for serving static files from a directory. If a static file is found, it serves the file; otherwise, the request is passed to the next middleware.
Create a new StaticFileMiddleware instance.
The service container to inject dependencies.
Handle incoming HTTP events and serve static files if applicable.
The incoming HTTP event.
The next middleware in the pipeline.
The outgoing HTTP response.
If access to the file is forbidden.
Kernel Middleware for serving static files from a directory. If a static file is found, it serves the file; otherwise, the request is passed to the next middleware.