File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ List of user-visible changes that have gone into each release
6868 and clean up whitespace for new clojure-mode
6969- Merged https://github.com/dakrone/clj-http/pull/171 to support SOCKS proxies
7070* Work log
71+ ** 2015-02-08
72+ - Add the `with-additional-middleware` macro
7173** 2015-01-19
7274- merged https://github.com/dakrone/clj-http/pull/248 to removed deprecated
7375 cookie APIs from cookie.clj
Original file line number Diff line number Diff line change 896896 m#)]
897897 ~@body)))
898898
899+ (defmacro with-additional-middleware
900+ " Perform the body of the macro with a list of additional middleware.
901+
902+ The given `middleware-seq' is concatenated to the beginning of the
903+ `*current-middleware*' sequence."
904+ [middleware-seq & body]
905+ `(with-middleware (concat ~middleware-seq *current-middleware*)
906+ ~@body))
907+
899908(defmacro with-connection-pool
900909 " Macro to execute the body using a connection manager. Creates a
901910 PoolingClientConnectionManager to use for all requests within the body of
You can’t perform that action at this time.
0 commit comments