Module streaming

Module streaming 

Source
Expand description

Smart streaming and large file handling for tower-http-cache.

This module provides intelligent body size detection and content-type based filtering to prevent large files (PDFs, videos, archives) from overwhelming the cache. Large bodies are automatically streamed through without buffering, preserving memory and cache efficiency.

Structs§

StreamingPolicy
Configuration for smart streaming and large file handling.

Enums§

StreamingDecision
Decision on how to handle a response body based on size and content type.

Functions§

extract_size_info
Extracts size information from various sources for logging/metrics.
should_stream
Determines how to handle a response body based on size hints and content type.