qubit-http 0.9.0

General-purpose HTTP infrastructure for Rust with unified client semantics, secure logging, and built-in SSE decoding
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/

use super::{
    SseControl,
    SseMessage,
};

/// Internal SSE record stream item before public message filtering.
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) enum SseRecord {
    /// Dispatchable EventSource message.
    Dispatch(SseMessage),
    /// Control state that should not be exposed as a message.
    Control(SseControl),
}