Alamofire v5.0.0-beta.2 Release Notes

Release Date: 2019-02-07 // about 5 years ago
  • 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.