File: myapp.clj

package info (click to toggle)
uwsgi 2.0.31-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,624 kB
  • sloc: ansic: 87,072; python: 7,010; cpp: 1,133; java: 708; perl: 678; sh: 585; ruby: 555; makefile: 148; xml: 130; cs: 121; objc: 37; php: 28; erlang: 20; javascript: 11
file content (10 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
(ns myapp
 (import uwsgi)
)

(defn handler [req]
     {:status 200
      :headers { "Content-Type" "text/html" , "Server" "uWSGI" }
      :body (str "<h1>The requested uri is " (get req :uri) "</h1>" "<h2>reverse is " (uwsgi/rpc (into-array ["" "reverse" (get req :uri)])) "</h2>" )
     }
)