Type Aliases
The following type aliases are available globally.
-
A dictionary of parameters to apply to a
URLRequest.Declaration
Swift
public typealias Parameters = [String : Any] -
RequestAdapterclosure definition.Declaration
Swift
public typealias AdaptHandler = (URLRequest, Session, _ completion: @escaping (Result<URLRequest, Error>) -> Void) -> Void -
RequestRetrierclosure definition.Declaration
Swift
public typealias RetryHandler = (Request, Session, Error, _ completion: @escaping (RetryResult) -> Void) -> Void -
Default type of
DataResponsereturned by Alamofire, with anAFErrorFailuretype.Declaration
Swift
public typealias AFDataResponse<Success> = DataResponse<Success, AFError> -
Default type of
DownloadResponsereturned by Alamofire, with anAFErrorFailuretype.Declaration
Swift
public typealias AFDownloadResponse<Success> = DownloadResponse<Success, AFError>
View on GitHub
Install in Dash
Type Aliases Reference