(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:
parent
59a676f107
commit
085ad7a4d0
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue