This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-26
Channels
- # announcements (10)
- # aws (5)
- # babashka (27)
- # beginners (175)
- # boot (1)
- # braveandtrue (2)
- # calva (11)
- # cider (13)
- # clj-kondo (91)
- # cljs-dev (54)
- # cljsrn (20)
- # clojure (164)
- # clojure-gamedev (3)
- # clojure-uk (43)
- # clojurescript (185)
- # core-async (6)
- # core-typed (1)
- # cursive (1)
- # docker (2)
- # emacs (2)
- # figwheel-main (78)
- # fulcro (69)
- # off-topic (20)
- # pathom (30)
- # planck (3)
- # re-frame (6)
- # reagent (70)
- # reitit (26)
- # ring (1)
- # shadow-cljs (120)
- # tools-deps (6)
- # vim (9)
Is there a way to distinguish between uppercase and lowercase request methods? Is suspect not, because in ring.util.servlet
I find:
(defn build-request-map
{[...]
:request-method (keyword (.toLowerCase (.getMethod request) Locale/ENGLISH))
[...]})
But may be I'm missing something. I want to respond with a method-not-allowed
when request methods are lower case, I can use a reversed proxy for this but I'm curious if it's also possible with Ring.