Optional

extension Optional where Wrapped == URLResponse

Available where Wrapped == URLResponse

  • PowerUpSwift: Returns true if the HTTP Status Code is between the range of 200 to 299.

    Declaration

    Swift

    public var isSuccess: Bool { get }
  • PowerUpSwift: Returns true if the HTTP Status Code is 401.

    Declaration

    Swift

    public var isUnauthorized: Bool { get }
  • PowerUpSwift: Returns true if the HTTP Status Code is 403.

    Declaration

    Swift

    public var isForbidden: Bool { get }