We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(require '[clj-http.client :as client] '[clj-http.conn-mgr :as conn-mgr]) (import org.apache.http.config.SocketConfig) (import org.apache.http.config.ConnectionConfig) (let [cm (conn-mgr/make-regular-conn-manager {})] (.setSocketConfig cm (-> (SocketConfig/copy (.getSocketConfig cm)) (.setRcvBufSize 400) (.build))) (.setConnectionConfig cm (-> (ConnectionConfig/copy (.getConnectionConfig cm)) (.setBufferSize 300) (.build))) (client/get "https://github.com/" {:connection-manager cm}))