pub async fn send_file(
cacher: &Option<Arc<Mutex<CacheMap>>>,
req: &mut Request,
depot: &mut Depot,
res: &mut Response,
filename: &str,
path: &Path,
) -> Result<(), ServerError>Expand description
Send a file from cache or disk, falling back to streaming for large files.