hyperlane-plugin-timeout 23.3.0

A per-route and global request deadline budget plugin for the Hyperlane framework with X-Request-Timeout clamping, Context RequestDeadline propagation, timeout_future async helper, and 504 Gateway Timeout enforcement.
Documentation
//! hyperlane-plugin-timeout
//!
//! Global and per-prefix request deadline budgets for Hyperlane with
//! `X-Request-Timeout` header clamping, [`RequestDeadline`] context propagation,
//! [`timeout_future`] async helper, and automatic `504 Gateway Timeout` replies.

mod r#const;
mod r#enum;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*};

pub(crate) use r#static::*;

use std::{
    cmp::Reverse,
    error::Error,
    fmt::{self, Display, Formatter},
    future::Future,
    str::from_utf8,
    sync::OnceLock,
    time::{Duration, Instant},
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, HttpStatus, Request, Response, ServerHook, Status, Stream,
        tokio::time::timeout,
    },
    lombok_macros::*,
};