Opinionated implementations for Clojure ring handler.
Being not satisfied with some decisions/implementations in existing Ring libraries.
The middlewares in this library does not provide wrap-middleware
function.
There are middleware builder functions in strojure.ring-lib.middleware.core
namespace:
(require '[strojure.ring-lib.middleware.core :as mw]
'[strojure.ring-lib.middleware.params :as params])
(-> handler
(mw/wrap-request (params/params-request-fn {})))
The alternative implementation of the cookies middleware.
:cookies
key in request.The alternative implementation of the params middleware.
[]
suffix has collection value.:form-params
which is :query-params
for GET requests and
:body-params
for POST request with “application/x-www-form-urlencoded”
content type.:path-or-query-params
which contains params from URL but not body.:params
as merge of everything else because it is considered confusing.Can you improve this documentation? These fine people already did:
Sergey Trofimov & seriogaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close