lack-middleware-charset

May 15, 2024 ยท View on GitHub

Add a charset parameter to Content-Type response headers

Usage

Wrap app:

(funcall lack/middleware/charset:*lack-middleware-charset*
         *app*
         :default '(("text/html" . "utf-8")
                    ("application/json" . "utf-8")))

Lack Builder:

(lack:builder
 (:charset :default '(("text/html" . "utf-8")))
 *web*)

Development

Run tests:

(asdf:test-system :foo.lisp.lack-middleware-charset)

Installation

Not in Quicklisp, so clone to "local-projects/".

Author

Copyright (c) 2024 John Newton

License

Apache-2.0