[][src]Function warp::filters::cookie::cookie

pub fn cookie(
    name: &'static str
) -> impl Filter<Extract = (String,), Error = Rejection> + Copy

Creates a Filter that requires a cookie by name.

If found, extracts the value of the cookie, otherwise rejects.