Babashka http-client: HTTP client for Clojure and babashka built on java.net.http
- #86:
uri-with-queryno longer decodes the existing query, fragment and user info when:query-paramsare used (@dylanpulver)
- #75: override existing content type header in multipart request
- Accept
:request-methodin addition to:requestto align more with other clients - Accept
:urlin addition to:urito align more with other clients
- #73: Allow implicit ports when specifying the URL as a map (@lvh)
- #71: Link back to sources in release artifact (@lread)
- #55: allow
:bodybejava.net.http.HttpRequest$BodyPublisher
- Support a Clojure function as
:clientoption, mostly useful for testing
- #45: query param values are double encoded
- #43: when using a string key for
Acceptheader, the value is overridden by the default
- #41: add
:urito response map
- Add
babashka.http-client.websocketAPI (mostly based on hato, thanks @gnarroway). See API docs. - The
:ssl-context {:insecure true}option was made more accepting, see babashka issue #1587 - #32: Documentation updates for missing parameters and functions (@casselc)
- #34: add construction helpers for
:cookie-handler,:ssl-parameters, and:executor(@casselc)
- Fix #28: add
:authenticatoroption
- Accept
java.net.URIas uri directly inrequest,get, etc. - #22: Support options for
:ssl-context, similar to hato - #23: ease construction of
ProxySelectorvia:proxykey
- Fix binary file uploads
- Add
:async-thenand:async-catchcallbacks that go together with:async - Change
:follow-redirectsoption from:alwaysto the safer:normal
- Merge client
:requestoptions earlier to pick up on:interceptorssettings
- Add
http/putconvenience function
- Implement
:multipartuploads, largely based on hato's implementation - #13: Add a default user-agent header:
babashka.http-client/<released-version>(@lispyclouds)
- #12: Do not uncompress (empty) body of
:headrequest
- Introduce
:requestoption inclientfunction for passing default request options via client. - Expose
default-client-opts, a map which can be used to get same behavior as (implicit) default client - Accept
gzipanddeflateas encoding in default client - Set accept header to
*/*in default client
Initial version