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.
(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))))
Comments top
No comments for status. Log in to add a comment.