Function warp::filters::path::tail [−][src]
pub fn tail(
) -> impl Filter<Extract = (Tail,), Error = Never> + Copy
Extract the unmatched tail of the path.
This will return a Tail
, which allows access to the rest of the path
that previous filters have not already matched.
Example
use warp::Filter; let route = warp::path("foo") .and(warp::path::tail()) .map(|tail| { // GET /foo/bar/baz would return "bar/baz". format!("The tail after foo is {:?}", tail) });