qubit-http 0.9.0

General-purpose HTTP infrastructure for Rust with unified client semantics, secure logging, and built-in SSE decoding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/

/// SSE control record that affects stream state but is not a user message.
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) enum SseControl {
    /// Reconnection delay from a valid `retry:` field, in milliseconds.
    ReconnectDelayMs(u64),
    /// Last event id update from an `id:` field without dispatchable data.
    LastEventId(String),
}