Retry Redesign, Redirects, and Cached Responses
Released on 2019-01-07. All issues associated with this milestone can be found using this filter. Note: Alamofire will not be following semantic versioning during the beta process. There may be breaking changes until 5.0.0 is released.
Added
- Support for controlling redirect behavior per
Session
and perRequest
using theRedirectHandler
protocol.- Added by Christian Noon in Pull Request #2699.
- Support for controlling cached response behavior per
Session
and perRequest
using theCachedResponseHandler
protocol.- Added by Christian Noon in Pull Request #2701.
- Support for controlling retry behavior per
Session
and perRequest
using theRequestInterceptor
protocol.- Added by Christian Noon in Pull Request #2704 in regards to Issue #2241.
- The
Adapter
,Retrier
, andInterceptor
types to provide fine grained control of retry behavior.- Added by Christian Noon in Pull Request #2704.
- Support for exponential backoff retry policies through the new
RetryPolicy
andConnectionLostRetryPolicy
types.- Added by Christian Noon in Pull Request #2704.
Updated
- The
RequestRetrier
protocol to take aRetryResult
in thecompletion
closure allowing custom retry errors to be thrown.- Updated by Christian Noon in Pull Request #2704.
- The
Hashable
implementation onRequest
to use newhash(into:)
API.- Updated by Jeff Kelley in Pull Request #2696.