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§
- Streaming
Policy - Configuration for smart streaming and large file handling.
Enums§
- Streaming
Decision - 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.