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 Sendable] -
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> -
RequestAdapterclosure definition.Declaration
Swift
public typealias AdaptHandler = @Sendable (_ request: URLRequest, _ session: Session, _ completion: @escaping @Sendable (Result<URLRequest, any Error>) -> Void) -> Void -
RequestRetrierclosure definition.Declaration
Swift
public typealias RetryHandler = @Sendable (_ request: Request, _ session: Session, _ error: any Error, _ completion: @escaping @Sendable (RetryResult) -> Void) -> Void
-
Disables all evaluation which in turn will always consider any server trust as valid.
Note
Instead of disabling server trust evaluation, it’s a better idea to configure systems to properly trust test certificates, as outlined in this Apple tech note.THIS EVALUATOR SHOULD NEVER BE USED IN PRODUCTION!
Declaration
Swift
@available(*, deprecated, renamed: "DisabledTrustEvaluator", message: "DisabledEvaluator has been renamed DisabledTrustEvaluator.") public typealias DisabledEvaluator = DisabledTrustEvaluator
View on GitHub
Install in Dash
Type Aliases Reference