Streamline clojure.contrib.http.agent interface
Simplify the interface to clojure.contrib.http.agent as follows:
- Replace separate :on-success and :on-failure callbacks with single :handler callback.
- Shorten response-body-bytes/str names to "result" and "result-str."
- Shorten response-status/message/headers names to status/message/headers
- Provide accessors for request parameters such as URI, headers, body, etc.
Leave a comment
on 2009-08-17 13:30 *
By stuartsierra
(In revision:74f64cdea1debc7e2442f9337f28a25a769792d2) http/agent.clj: streamlined interface, refs #15
This brings http.agent close to completion.
Branch: master
This brings http.agent close to completion.
Branch: master
on 2009-08-17 18:36 *
By stuartsierra
(In revision:b5fa8307d410a4447e6c36ac5fcaeff0c4f1baff) http/agent.clj: added documentation and examples, refs #15
Branch: master
Branch: master
on 2009-08-17 18:38 *
By stuartsierra
(In revision:78637658d879f8859ac6a883e0e0984d63f6ff18) http/agent.clj: more documentation, refs #15
Branch: master
Branch: master