Skip to content

Swift 5 and Response Serializer Retry Support

Compare
Choose a tag to compare
@cnoon cnoon released this 29 Mar 20:16
· 319 commits to master since this release
e9c742d

Released on 2019-03-29. 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

  • The AlamofireExtended protocol and used it to namespace all public extensions.
  • The ability to retry requests after encountering response serialization errors.

Updated

  • The switch and DispatchQueue logic throughout codebase to simplify usage patterns.
  • The MultipartFormData data APIs by condensing them using optional parameters.
  • The upload APIs for MultipartFormData to support custom boundaries.
  • The Xcode project, source code, SPM package, and podspec to support Swift 5 only.
  • The Alamofire Result type to be a new AFResult typealias on the new Swift.Result type in Swift 5 and removed all public extensions.

Fixed

  • Issue in RequestInterceptor closures where callback arguments were not marked as @escaping.
  • Issue in response serializers where emptyResponseAllowed logic was not working as expected.