Module warp::filters::reply [−][src]
Reply Filters
These "filters" behave a little differently than the rest. Instead of being used directly on requests, these filters "wrap" other filters.
Wrapping a Filter
(with
)
use warp::Filter; let with_server = warp::reply::with::header("server", "warp"); let route = warp::any() .map(warp::reply) .with(with_server);
Wrapping allows adding in conditional logic before the request enters
the inner filter (though the with::header
wrapper does not).
Structs
WithDefaultHeader |
Wrap a |
WithHeader |
Wrap a |
WithHeaders |
Wrap a |
Functions
default_header |
Wrap a |
header |
Wrap a |
headers |
Wrap a |