Open
Description
Hi, I have a question on how to properly use the fs::file
Filter.
I'd like to have something like this:
let route = warp::get2()
.and(path!("files" / String))
.and(warp::path::end())
.and_then(get_file_path)
.and_then(|filepath| warp::fs::file(filepath));
Where get_file_path
would be a Future
returning a PathBuf
.
Is there any way to achieve this?
Thanks, and great project BTW 😃