Skip to main content

Middleware

MiddlewareDescriptionRepository
requestidThe Lightning Request ID middleware is designed to provide unique request IDs for every incoming request and add them to logs and response headers.https://github.com/lightning-contrib/requestid
compressThis is a middleware for Lightning that provides compression for HTTP responses. It supports four compression algorithms: Brotli, Deflate, Gzip, and Zstd.https://github.com/lightning-contrib/compress
corsThis package provides a middleware that can be used to enable CORS in a Lightning web application. The middleware can be configured with various options to allow specific origins, HTTP methods, headers, and more.https://github.com/lightning-contrib/cors
staticThe static middleware is a Go package that provides a middleware for serving static files over HTTP.https://github.com/lightning-contrib/static
pprofpprof is a Go package that provides a set of HTTP handlers for profiling Go programs. It is built on top of the standard net/http/pprof package and is designed to work with the lightning web framework.https://github.com/lightning-contrib/pprof