hyperlane-plugin-static-files 23.3.2

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
6
7
8
9
10
11
12
mod static_files;

use super::*;

use std::{
    collections::VecDeque,
    env::temp_dir,
    fs::{create_dir_all, remove_dir_all, write},
    process,
};

use hyperlane::{Method, tokio};