http-type 18.2.0

A comprehensive Rust library providing essential types for HTTP operations. Includes core HTTP abstractions (request/response, methods, status codes, versions), content types, cookies, WebSocket support, and thread-safe concurrent types (ArcMutex, ArcRwLock). Also provides convenient Option-wrapped primitive types for flexible HTTP handling.
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,
}