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