hyperlane-plugin-static-files 22.13.0

A high-performance static file server plugin for the Hyperlane framework with canonicalized path-traversal protection, built-in FileExtension MIME detection, 64-way sharded hot-file cache, precompressed .br/.gz sidecars, ETag/304 conditional validation, RFC 9110 Range 206/416 support, and SPA fallback.
Documentation
1
2
3
4
5
use super::*;

/// Fixed-size 64-way sharded hot-file cache array.
pub(crate) type StaticCacheShardArray =
    Box<[RwLock<HashMapXxHash3_64<PathBuf, Arc<CachedFile>>>; STATIC_CACHE_SHARDS]>;