Clojure-Contrib

Streamline clojure.contrib.http.agent interface

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Simplify the interface to clojure.contrib.http.agent as follows:

  1. Replace separate :on-success and :on-failure callbacks with single :handler callback.
  2. Shorten response-body-bytes/str names to "result" and "result-str."
  3. Shorten response-status/message/headers names to status/message/headers
  4. Provide accessors for request parameters such as URI, headers, body, etc.

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/15
Hide
Assembla Importer added a comment -

stuart.sierra said: (In revision:74f64cdea1debc7e2442f9337f28a25a769792d2) http/agent.clj: streamlined interface, refs #15

This brings http.agent close to completion.

Branch: master

Show
Assembla Importer added a comment - stuart.sierra said: (In revision:74f64cdea1debc7e2442f9337f28a25a769792d2) http/agent.clj: streamlined interface, refs #15 This brings http.agent close to completion. Branch: master
Hide
Assembla Importer added a comment -

stuart.sierra said: (In revision:b5fa8307d410a4447e6c36ac5fcaeff0c4f1baff) http/agent.clj: added documentation and examples, refs #15

Branch: master

Show
Assembla Importer added a comment - stuart.sierra said: (In revision:b5fa8307d410a4447e6c36ac5fcaeff0c4f1baff) http/agent.clj: added documentation and examples, refs #15 Branch: master
Hide
Assembla Importer added a comment -

stuart.sierra said: (In revision:78637658d879f8859ac6a883e0e0984d63f6ff18) http/agent.clj: more documentation, refs #15

Branch: master

Show
Assembla Importer added a comment - stuart.sierra said: (In revision:78637658d879f8859ac6a883e0e0984d63f6ff18) http/agent.clj: more documentation, refs #15 Branch: master

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: