• (redirect? http-agnt)
Returns true if the HTTP response code was in the 300-399 range.

Note: if the :follow-redirects option was true (the default),
redirects will be followed automatically and a the agent will never
return a 3xx response code.

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:362 top

(defn redirect?
  "Returns true if the HTTP response code was in the 300-399 range.

  Note: if the :follow-redirects option was true (the default),
  redirects will be followed automatically and a the agent will never
  return a 3xx response code."
  [http-agnt]
  (status-in-range? 3 http-agnt))
Vars in clojure.contrib.http.agent/redirect?: defn
Used in 0 other vars

Comments top

No comments for redirect?. Log in to add a comment.