• (status http-agnt)
Returns the HTTP response status code (e.g. 200, 404) for this
request, as an Integer, or nil if the status has not yet been
received.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/http/agent.clj:316 top

(defn status
  "Returns the HTTP response status code (e.g. 200, 404) for this
  request, as an Integer, or nil if the status has not yet been
  received."
  [http-agnt]
  (when (done? http-agnt)
    (.getResponseCode ^HttpURLConnection (::connection @http-agnt))))
Vars in clojure.contrib.http.agent/status: defn when deref
Used in 0 other vars

Comments top

No comments for status. Log in to add a comment.