You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://pedestal.io/reference/request-map says that :params is a Map of keyword -> String.
Is this true if one doesn't add keyword-params to the default interceptors?
:params by default seem to use strings for form-params, even if they are keywords in :form-params.
In short, :params by default seems to be a map of keyword or String -> String.
lein new pedestal-service ps
;; verify project.clj is using pedestal.service 0.5.2
in service.clj add handler:
(defn post-test [request] (ring-resp/response request))
and route:
["/test" :post (conj common-interceptors `post-test)]
curl -X POST -d yo=lo localhost:8080/test?any=thing returns:
:params {:any "thing", "yo" "lo"}
:form-params {:yo "lo"}
:query-params {:any "thing"}
The text was updated successfully, but these errors were encountered:
http://pedestal.io/reference/request-map says that :params is a Map of keyword -> String.
Is this true if one doesn't add keyword-params to the default interceptors?
:params by default seem to use strings for form-params, even if they are keywords in :form-params.
In short, :params by default seems to be a map of keyword or String -> String.
The text was updated successfully, but these errors were encountered: