Re: Compojure: How to process GET query string

2011-05-18 Thread finbeu
Got it! Works. Thx for the quick reply - FB On 18 Mai, 15:46, gaz jones wrote: > query string params appear in the params of the request: > > (GET "/math" {params :params} [] >   (get params :a) ;; 1 -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Compojure: How to process GET query string

2011-05-18 Thread gaz jones
query string params appear in the params of the request: (GET "/math" {params :params} [] (get params :a) ;; 1 (get params :b) ;; 2 ... etc they will be keywords as above if you are using the wrap-keyword-params handler, otherwise strings. the syntax you are using above is for pulling valu

Compojure: How to process GET query string

2011-05-18 Thread finbeu
Hi I don't know how to extract the query string from a route. I guess it is pretty simply but I don't get it. http://localhost:8080/math/add?a=1&b=2&c=3 I quess they can be retrieved somehow with :query-string keyword? But I have no clue how. (GET "/math/:command" [command & more] Tha