http-type 18.4.0

A comprehensive Rust type library for HTTP operations and concurrent programming. Provides core HTTP types (Request/Response with builder patterns, Method, HttpStatus, HttpVersion, ContentType, FileExtension with MIME mapping, Cookie parsing/building, HttpUrl parsing, WebSocket frame/opcode, protocol upgrade types, stream/task management, panic handling), thread-safe concurrent wrappers (ArcMutex, ArcRwLock, BoxRwLock, RcRwLock), dynamic dispatch types (BoxAny, RcAny, ArcAny with Send/Sync variants), high-performance hash collections (HashMapXxHash3_64, HashSetXxHash3_64), and static lifetime utilities (BoxLeak, Lifetime trait).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

/// Represents the execution status of a server hook.
///
/// This enum is used to control the request processing pipeline flow.
/// When a hook returns `Reject`, the pipeline stops processing further hooks
/// and the connection lifecycle is aborted. When a hook returns `Continue`,
/// the pipeline proceeds to the next hook or stage.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum Status {
    /// Indicates that the request processing should continue to the next hook or stage.
    Continue,
    /// Indicates that the request processing should be aborted and no further hooks should be executed.
    #[default]
    Reject,
}