Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pprint'ing request maps to console as well as showing in html response

  • Loading branch information...
commit b2201d2cb2f82ea85f911f5fa374a29309bf3b2a 1 parent 800cc60
@mmcgrana authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 ring-devel/src/ring/handler/dump.clj
View
5 ring-devel/src/ring/handler/dump.clj
@@ -3,7 +3,8 @@
(:use (hiccup core page-helpers)
[clojure.contrib.def :only (defvar-)]
ring.util.response)
- (:require (clojure [set :as set])))
+ (:require (clojure [set :as set]))
+ (:require [clojure.pprint :as pprint]))
(declare css)
@@ -44,6 +45,8 @@
"Returns a response tuple corresponding to an HTML dump of the request
req as it was recieved by this app."
[req]
+ (pprint/pprint req)
+ (println)
(-> (response (template req))
(status 200)
(content-type "text/html")))
Please sign in to comment.
Something went wrong with that request. Please try again.