@@ -62,15 +62,15 @@ function.
6262With Leiningen/Boot:
6363
6464#+BEGIN_SRC clojure
65- [clj-http "1.1.2 "]
65+ [clj-http "2.0.0 "]
6666#+END_SRC
6767
6868Previous versions available as:
6969
7070#+BEGIN_SRC clojure
71+ [clj-http "1.1.2"]
7172[clj-http "1.1.1"]
7273[clj-http "1.0.1"]
73- [clj-http "0.9.2"]
7474#+END_SRC
7575
7676clj-http supports clojure 1.5.0 and higher.
@@ -772,21 +772,24 @@ out the [[https://github.com/myfreeweb/clj-http-fake][clj-http-fake]] library.
772772
773773** Optional Dependencies
774774
775+ In 2.0.0+ clj-http's optional dependencies at excluded by default, in order to
776+ use the features you will need to add them to your =project.clj= file.
777+
775778clj-http currently has four optional dependencies, =cheshire=, =crouton=,
776779=tools.reader= and =ring/ring-codec=. Any number of them may be included by
777780adding them with the clj-http dependency in your project.clj:
778781
779782#+BEGIN_SRC clojure
780- (defproject foo "0.1.0-SNAPSHOT"
781- :dependencies [[org.clojure/clojure "1.6.0"]
782- [clj-http "1.1.2"]
783- ;; optional dependencies
784- [cheshire "5.4.0"] ;; for :as :json
785- [crouton "0.1.2"] ;; for :decode-body-headers
786- [org.clojure/tools.reader] ;; for :as :clojure
787- [ring/ring-codec]]]]) ;; for :as :x-www-form-urlencoded
783+ ;; optional dependencies
784+ [cheshire] ;; for :as :json
785+ [crouton] ;; for :decode-body-headers
786+ [org.clojure/tools.reader] ;; for :as :clojure
787+ [ring/ring-codec] ;; for :as :x-www-form-urlencoded
788788#+END_SRC
789789
790+ Prior to 2.0.0, you can /exclude/ the dependencies and clj-http will work
791+ without them.
792+
790793** clj-http-lite
791794
792795Like clj-http but need something more lightweight without as many external
0 commit comments