hyperlane-plugin-static-files 23.2.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::*;

/// Zero-allocation hash map used inside each hot-file cache shard.
pub(crate) type StaticCacheShardMap =
    HashMap<String, Arc<CachedRouteEntry>, BuildHasherDefault<FxHasher>>;