/lack-middleware-charset

Primary LanguageCommon LispApache License 2.0Apache-2.0

lack-middleware-charset

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

Copyright (c) 2024 John Newton

License

Apache-2.0