pub fn end() -> impl Filter<Extract = (), Error = Rejection> + Copy
Expand description
Matches the end of a route.
Note that not including end()
may result in shorter paths like
/math
unintentionally matching /math/sum
.
§Example
use warp::Filter;
// Matches '/'
let hello = warp::path::end()
.map(|| "Hello, World!");