pub fn cookie<T>( name: &'static str, ) -> impl Filter<Extract = (T,), Error = Rejection> + Copywhere T: FromStr + Send + 'static,
Creates a Filter that requires a cookie by name.
Filter
If found, extracts the value of the cookie, otherwise rejects.