Enumerations
The following enumerations are available globally.
-
AFErroris the error type returned by Alamofire. It encompasses a few different types of errors, each with their own associated reasons.- explicitlyCancelled: Returned when a
Requestis explicitly cancelled. - invalidURL: Returned when a
URLConvertibletype fails to create a validURL. - parameterEncodingFailed: Returned when a parameter encoding object throws an error during the encoding process.
- parameterEncoderFailed: Returned when a parameter encoder throws an error during the encoding process.
- multipartEncodingFailed: Returned when some step in the multipart encoding process fails.
- requestAdaptationFailed: Returned when a
RequestAdapterthrows an error during request adaptation. - responseValidationFailed: Returned when a
validate()call fails. - responseSerializationFailed: Returned when a response serializer throws an error in the serialization process.
- serverTrustEvaluationFailed: Returned when a
ServerTrustEvaluatinginstance fails during the server trust evaluation process. - requestRetryFailed: Returned when a
RequestRetrierthrows an error during the request retry process.
Declaration
Swift
public enum AFError : Error - explicitlyCancelled: Returned when a
-
Declaration
Swift
public enum HTTPMethod : String
-
Undocumented
See moreDeclaration
Swift
public enum RetryResult
View on GitHub
Install in Dash
Enumerations Reference