clj-http icon indicating copy to clipboard operation
clj-http copied to clipboard

An idiomatic clojure http client wrapping the apache client. Officially supported version.

Results 76 clj-http issues
Sort by recently updated
recently updated
newest added

- I'm new to this lib is it possible to have URL path parameters? - my backend in java is `@Path("users/{username}")` - in clojure I try like this, but not...

In my project, I use [the Slash handler provided by Reitit library](https://cljdoc.org/d/metosin/reitit/0.5.18/doc/ring/slash-handler) to remove the trailing `/` of any URL. This works with the help of HTTP `308` redirect. When...

Prevents `NullPointerException` thrown by `util/parse-content-type` when the charset specified in a content type is empty. Example: `Content-Type: text/html;charset=`

bug

I'm following the [guide](https://clojure.org/guides/dev_startup_time) for using AOT. This works ... except for clj-http. The error I'm getting is not when compiling but when loading the compiled classes (rather than clj...

I'm not sure whether this is intended or not, but when you make an async request using the `:async?` flag, the invocation may still block your current thread indefinately. This...

I was confused about this and assumed I could also use `:body`. I thought this might help others too. LMK if I've misunderstood something here.

I wonder if this is worth documenting in the README for Multipart posts: Due to the design of the Filebody constructor, a File part in a multipart post won't send...

The `:threads` option to make-reusable-conn-manager [documentation](https://github.com/dakrone/clj-http/blob/dd15359451645f677b3e294164cf70330b92241d/src/clj_http/conn_mgr.clj#L241) says "Maximum number of threads that will be used for connecting" This is used to call [`.setMaxTotal`](https://github.com/dakrone/clj-http/blob/dd15359451645f677b3e294164cf70330b92241d/src/clj_http/conn_mgr.clj#L274) on [`org.apache.http.impl.conn.PoolingHttpClientConnectionManager`](https://github.com/dakrone/clj-http/blob/dd15359451645f677b3e294164cf70330b92241d/src/clj_http/conn_mgr.clj#L213) (note the word "threads" is...

I ran a simple server like this ```sh nc -kl 28139 ``` and ran this Clojure code: ```clojure (require '[clj-http.client :as client]) (client/get "http://localhost:28139/house-sitting/" {:query-params {"page" "1" "available" ["" "1"]...

The only issue I foresee is the handling of empty dictionary query params. I'm assuming, based on the lack of test coverage, that this isn't a real use case?