pub fn value(
name: &'static str,
) -> impl Filter<Extract = (HeaderValue,), Error = Rejection> + Copy
Expand description
Create a Filter
that gets a HeaderValue
for the name.
§Example
use warp::{Filter, http::header::HeaderValue};
let filter = warp::header::value("x-token")
.map(|value: HeaderValue| {
format!("header value bytes: {:?}", value)
});