//! Shared helpers for parsing session cookies from an HTTP `Cookie` header.
//!
//! Centralizing this avoids drift between the `SessionMiddleware` request
//! ingestion path and the `Injectable` DI path.
use Request;
/// Find the value of the cookie named `cookie_name` in the request's
/// `Cookie` header. Returns `None` if the header is missing, not valid
/// UTF-8, or does not contain a cookie with the requested name.
///
/// Cookie matching is case-sensitive on the name and uses `splitn(2, '=')`
/// so that values containing `=` are preserved.
pub