Module static_files

Module static_files 

Source
Expand description

Static file serving module for Sentinel proxy

This module provides high-performance static file serving with:

  • Range requests (206 Partial Content) for resumable downloads and video seeking
  • Zero-copy file serving using memory-mapped files for large files
  • On-the-fly gzip/brotli compression
  • In-memory caching for small files
  • Directory listing and SPA routing

§Module Structure

  • [cache]: File caching with pre-computed compression
  • [compression]: Content encoding and compression utilities
  • [range]: HTTP Range request handling

Structs§

CacheStats
Cache statistics
CachedFile
Cached file entry
FileCache
File cache for improved performance
StaticFileServer
Static file server

Enums§

ContentEncoding
Content encoding preference