ValidationType

public enum ValidationType

Represents the status codes to validate through Alamofire.

  • No validation.

    Declaration

    Swift

    case none
  • Validate success codes (only 2xx).

    Declaration

    Swift

    case successCodes
  • Validate success codes and redirection codes (only 2xx and 3xx).

    Declaration

    Swift

    case successAndRedirectCodes
  • Validate only the given status codes.

    Declaration

    Swift

    case customCodes([Int])
  • Declaration

    Swift

    public static func == (lhs: ValidationType, rhs: ValidationType) -> Bool