spikard-http 0.13.0

High-performance HTTP server for Spikard with tower-http middleware stack
Documentation
1
2
3
4
5
6
7
8
//! Shared metadata stored on `http::Response` extensions.

/// Extension type storing the original, uncompressed response body size in bytes.
///
/// Middleware (like compression) can inspect this to make deterministic decisions
/// even when the final body length would otherwise require buffering.
#[derive(Debug, Clone, Copy)]
pub struct ResponseBodySize(pub usize);