(TK-27) Add async client protocol

Add async client protocol to the async.clj file. This protocol
has methods for all the various HTTP request types.
This commit is contained in:
Preben Ingvaldsen 2014-07-10 12:06:42 -07:00
parent 59a676f107
commit 085ad7a4d0

View file

@ -31,6 +31,19 @@
[clojure.tools.logging :as log])
(:refer-clojure :exclude (get)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Async Client protocol
(defprotocol async-client
(get [url] [url opts])
(head [url] [url opts])
(post [url] [url opts])
(put [url] [url opts])
(delete [url] [url opts])
(trace [url] [url opts])
(options [url] [url opts])
(patch [url] [url opts]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Private SSL configuration functions