5.0.0-rc.1
版本发布时间: 2019-09-04 12:28:28
Alamofire/Alamofire最新发布版本:5.9.1(2024-03-31 09:22:33)
Released on 2019-09-04. All issues associated with this milestone can be found using this filter. Note: Alamofire 5 is now API stable.
Added
-
cancelAllRequests
method onSession
to cancel all in flight requests. - Ability to inject
FileManager
instance intoUploadRequest
. -
DataPreprocessor
protocol and implementations, allowing the preprocessing of data before serialization. - Internal
URLRequest
validation and error.GET
requests with body data will now produce an error. - Generic
Failure
constraint toDataResponse
andDownloadResponse
, making themDataResponse<Success, Failure: Error>
andDownloadResponse<Success, Failure: Error>
. - Precondition to ensure
Session
can't be used with backgroundURLSessionConfiguration
s. Alamofire will explicitly support such functionality at some point in the future. - SwiftFormat configuration and updated styling.
-
AFDataResponse<Success>
andAFDownloadResponse<Success>
typealiases to help deal with the doubly generic responses.
Updated
- All internal
Result
usage to use the fully qualified type instead ofAFResult
. -
DataRequest
andDownloadRequest
functional API, renamingflatMap
totryMap
. -
HTTPMethod
to be a struct rather than an enum. - All errors produced by Alamofire to be
AFError
by default. All responses will now start with anAFError
Failure
type. -
NetworkReachabilityManager
to simplify and modernize its API. -
Usage.md
documentation to be fully up-to-date with Alamofire 5. - Bundle identifiers to include the platform name, fixing ITMS-90806.