Skip to content

Instantly share code, notes, and snippets.

@oitee
Last active March 30, 2023 23:18
Show Gist options
  • Save oitee/6081afc85bdef3b1d1d10d4789138102 to your computer and use it in GitHub Desktop.
Save oitee/6081afc85bdef3b1d1d10d4789138102 to your computer and use it in GitHub Desktop.
;; curl -d 'id="1234"' -X POST 'http://localhost:65535/?name=otee'
(defn handler-that-needs-keyword-params
[{params :params}]
;; the following will return this response map:
;; {:body "Hello otee your ID is: 1234" ...}
(ring.util.response/response "Hello" (:name params) " your ID is: " (:id params)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment