@seanmonstar wondering if there is a way to implement custom Filters and Wraps? From what I can tell one would need to impl FilterBase and
WrapSealed but both these are private.
You can create custom filters by composing. You can start with `warp::any()`.
-
-
So specifically I am trying to implement auth. fn auth() if valid continue else redirect '/login' warp::path("/portfolio").and(auth).and_then(reply)
-
I use warp::any() it will intercept all further filters. Is there a combinator on Filter that I am overlooking?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.