An lmug adaptor for the Elli web server.
TBD
Just add it to your rebar.config
deps
:
{deps, [
{lmug_elli,
{git, "git://github.com/lfe-mug/lmug-elli.git",
{tag, "0.3.3"}}}
]}.
> (include-lib "clj/include/compose.lfe")
loaded-compose
> (set app (-> (lmug:response)
(lmug-mw-identity:wrap)
(lmug-mw-content-type:wrap)
(lmug-mw-identity:wrap)))
#Fun<lmug-mw-content-type.0.87096894>
> (set opts '[#(port 3002)])
(#(port 3002))
> (lmug-elli:run app opts)
http :3002/file.json
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 0
Content-Type: application/json
Copyright © 2016 LFE Dragon Team
Distributed under the Apache License, Version 2.0.