lack-middleware-request-id
May 25, 2024 ยท View on GitHub
Adds REQUEST-ID to the Lack ENV and X-Request-Id to the response headers.
When the request already has an X-Request-Id header, as when set by an upstream server, the middleware uses that value; otherwise it generates a new request-ID using frugal-uuid.
Usage
Wrap app:
(funcall lack/middleware/request-id:*lack-middleware-request-id*
*app*)
Lack Builder:
(lack/builder:builder
:request-id
*app*)
Development
Run tests:
(asdf:test-system :foo.lisp.lack-middleware-request-id)
Installation
Not yet in Quicklisp, so for now clone to local-projects/.
Dependencies
Middleware
Tests
Copyright
Copyright (c) 2024 John Newton
License
Apache-2.0