Created
December 2, 2016 05:25
-
-
Save ruseel/0154c65a3ea6d46b844bf3a3c51b1bd3 to your computer and use it in GitHub Desktop.
clj-http로 keep-alive를 이용해서 요청하기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(time (doseq [conn-mgr [(clj-http.conn-mgr/make-reusable-conn-manager {})]] | |
(dotimes [_ 2] | |
(clj-http.client/request {:method :get | |
:url "https://www.valuepotion.com/" | |
:connection-manager conn-mgr}) | |
nil))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment