flix

0.79.0

RetryOutcome.flix

/*
 * Copyright 2026 Flix Authors
 *
 * Use of this source code is governed by the Apache 2.0 license
 * that can be found in the LICENSE.md file.
 */

///
/// Type of reasons for considering a retry, and its functions.
///
pub mod Net.RetryOutcome {

    use Net.HttpResponse

    ///
    /// Type of reasons for considering a retry.
    ///
    pub enum RetryOutcome {
        /// A transport-level failure (connection refused, timeout, etc.).
        case TransportError(IoError)
        /// A response was received but its status code warrants a retry (e.g. 429, 503).
        case HttpError(HttpResponse)
    }

}