Function choices::warp::filters::header::value[][src]

pub fn value(name: &'static str) -> impl Filter + Copy

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)
    });