Function pencil::helpers::send_from_directory
[−]
[src]
pub fn send_from_directory(directory: &str, filename: &str, as_attachment: bool) -> PencilResult
Send a file from a given directory with send_file
. This is a secure way to
quickly expose static files from an folder. This will guess the mimetype
for you.