Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter to get a safe PathBuf #422

Open
seanmonstar opened this issue Jan 27, 2020 · 1 comment
Open

Add filter to get a safe PathBuf #422

seanmonstar opened this issue Jan 27, 2020 · 1 comment
Labels
feature New feature or request

Comments

@seanmonstar
Copy link
Owner

The warp::fs filters currently decode the path tail into a safe PathBuf. It'd be useful to expose that by itself so others can use it while combining their own file filters.

Something like warp::fs::path_buf() could work.

@seanmonstar seanmonstar added the feature New feature or request label Jan 27, 2020
@jonas-hagen
Copy link

There is a lot of valuable code in warp::fs. I would really like a warp::reply::file(...) function or similar, that would essentially correspond to the private warp::filter::fs::file_reply() function. Also, it would maybe help with #526, if the warp::fs code would be more modular and more public. I tried to refactor it a bit, but my Rust/Async/Tokio skills are currently not up to this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants