Releases: sagebind/isahc
Releases · sagebind/isahc
Cookies, bugfixes, and more!
A surprisingly feature-focused patch release with a couple notable bugfixes. This October Isahc opted-in to Hacktoberfest, and we received a couple additions from new contributors. Thanks!
Added
- Add
HttpClientBuilder::connection_cache_ttl
for configuring how long to keep connections open in the cache. (#93, #237) @gsquire - Make cookie jar API more useful by adding several new methods, including
HttpClient::cookie_jar
,Configurable::cookie_jar
,CookieJar::get_by_name
,Cookie::value
, and more! An example of how to use some of these have been added toexamples/cookies.rs
. (#215, #233) @sagebind - Add a "Why not use" section to readme. (#234) @sagebind
Fixed
- Fix timeouts and other mid-transfer errors causing unexplained EOFs instead of returning a proper
io::Error
. (#154, #246) @sagebind - Fix improper cookie behavior when automatically following redirects, such as not sending any cookies in subsequent requests. (#232, #240) @sagebind
Changed
- Make
HttpClient
cloneable. This makes it much more convenient to share a client instance between threads or tasks. (#241, #244) @braunse - Replace middleware API with interceptors API. The
middleware-preview
crate feature has been removed and theunstable-interceptors
feature has been added. The API is still unstable, but addresses a number of problems with the old proposed middleware API. (#42, #206) @sagebind - Update integration tests to use new testserver (#230) @sagebind
Dependency Updates
- Update env_logger requirement from 0.7 to 0.8 (#238) @dependabot
- Update crossbeam-channel requirement from 0.4 to 0.5 (#236) @dependabot
- Update crossbeam-utils requirement from 0.7 to 0.8 (#235) @dependabot
- Update Public Suffix List to 40d5bd4 (#231) @sagebind
- Create Dependabot config file (#229) @dependabot-preview
Add automatic_decompression option
static-ssl feature
Addr and headers
New dialer API with Unix socket support
Added
- Add new
config::Dialer
API that allows you to customize and override what sockets are connected to for a request, regardless of the host in the URL. Static IP sockets and Unix sockets are initially supported. (#150, #207) @sagebind
Fixed
- Fix HEAD requests with a body and libcurl 7.71+ not playing well together because of incorrect usage of
CURLOPT_NOBODY
in Isahc. (#213, #214, #216) @sagebind
Dependency Updates
- Update mockito requirement from 0.26 to 0.27 (#217) @dependabot-preview
Empty header fix
Fixed
Dependency Updates
- Update Public Suffix List to 011f110 (#204)
- Update mockito requirement from 0.25 to 0.26 (#203) @dependabot-preview
- Update parking_lot requirement from 0.10 to 0.11 (#201) @dependabot-preview
Init fix and experimental HTTP/3 support
Fixed
- Upgrade curl to 0.4.30 to mitigate potential init-on-non-main-thread with certain TLS engines on certain platforms. (#189) @sagebind
Added
- Allow for experimental HTTP/3 support in libcurl. (This does not enable HTTP/3 support, it just merely allows it if libcurl is compiled with it.) (#185) @sagebind
Dependency Updates
- Update indicatif requirement from 0.14 to 0.15 (#200) @dependabot-preview