diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-08-14 12:04:34 -0700 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-08-14 12:04:34 -0700 |
commit | 4db08e5db716c513085972df6b06dbccbb77dc83 (patch) | |
tree | f5d5c74fbb04b556331257badb7dfd2b3b8b155a /http.agent-api.html | |
parent | 23dce7d3dde629910f18c1cfe770f022f4e82bd1 (diff) |
Updated documentation for commit 05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a
Diffstat (limited to 'http.agent-api.html')
-rw-r--r-- | http.agent-api.html | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/http.agent-api.html b/http.agent-api.html index ddb797d2..6d88a852 100644 --- a/http.agent-api.html +++ b/http.agent-api.html @@ -68,6 +68,8 @@ namespace. <a href="#http.agent/response-message">response-message</a> </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#http.agent/response-status">response-status</a> + </div><div style="margin-left: 1em;" class="toc-entry"> + <a href="#http.agent/response-success?">response-success?</a> </div> <br /> </div> @@ -141,7 +143,7 @@ by this function will become agent-errors. Any exceptions thrown by this function will be added to the agent's error queue (see agent-errors). </pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L58" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L58" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-body-bytes">response-body-bytes</h2> @@ -149,7 +151,7 @@ agent-errors). <pre id="var-usage">Usage: (response-body-bytes a) </pre> <pre id="var-docstr">Returns a Java byte array of the content returned by the server.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L122" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L122" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-body-str">response-body-str</h2> @@ -159,7 +161,7 @@ agent-errors). <pre id="var-docstr">Returns the HTTP response body as a string. The string will be created using the encoding specified by the server, or *default-encoding* if it is not specified.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L128" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L128" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-headers">response-headers</h2> @@ -169,7 +171,7 @@ created using the encoding specified by the server, or <pre id="var-docstr">Returns a String=>String map of HTTP response headers. Header names are converted to all lower-case. If a header appears more than once, only the last value is returned.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L153" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L153" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-headers-seq">response-headers-seq</h2> @@ -179,7 +181,7 @@ than once, only the last value is returned.</pre> <pre id="var-docstr">Returns the HTTP response headers in order as a sequence of [String,String] pairs. The first 'header' name may be null for the HTTP status line.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L162" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L162" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-message">response-message</h2> @@ -187,7 +189,7 @@ HTTP status line.</pre> <pre id="var-usage">Usage: (response-message a) </pre> <pre id="var-docstr">Returns the HTTP response message (e.g. 'Not Found'), for this request.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L147" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L147" id="var-source">Source</a> </div><div id="var-entry"> <hr /> <h2 id="http.agent/response-status">response-status</h2> @@ -195,7 +197,15 @@ HTTP status line.</pre> <pre id="var-usage">Usage: (response-status a) </pre> <pre id="var-docstr">Returns the Integer response status code (e.g. 200, 404) for this request.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/6fea921c91d453c750586c960ec92caacf4fa5e6/src/clojure/contrib/http/agent.clj#L141" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L141" id="var-source">Source</a> +</div><div id="var-entry"> + <hr /> + <h2 id="http.agent/response-success?">response-success?</h2> + <span id="var-type">function</span><br /> + <pre id="var-usage">Usage: (response-success? http-agnt) +</pre> + <pre id="var-docstr">Returns true if the HTTP response code was in the 200-299 range.</pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/05cf6c1e991a9db416a51f1ff5cc8ff2bccac15a/src/clojure/contrib/http/agent.clj#L175" id="var-source">Source</a> </div> |