Skip to main content

send_file

Function send_file 

Source
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.