Skip to content

Retry Redesign, Redirects, and Cached Responses

Compare
Choose a tag to compare
@cnoon cnoon released this 07 Feb 22:08
· 347 commits to master since this release

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 per Request using the RedirectHandler protocol.
  • Support for controlling cached response behavior per Session and per Request using the CachedResponseHandler protocol.
  • Support for controlling retry behavior per Session and per Request using the RequestInterceptor protocol.
  • The Adapter, Retrier, and Interceptor types to provide fine grained control of retry behavior.
  • Support for exponential backoff retry policies through the new RetryPolicy and ConnectionLostRetryPolicy types.

Updated

  • The RequestRetrier protocol to take a RetryResult in the completion closure allowing custom retry errors to be thrown.
  • The Hashable implementation on Request to use new hash(into:) API.