Function get_cookie_value

Source
pub fn get_cookie_value<'a>(
    req_header: &'a RequestHeader,
    cookie_name: &str,
) -> Option<&'a str>
Expand description

Gets cookie value from req header.

§Arguments

  • req_header - The HTTP request header
  • cookie_name - Name of the cookie to find

§Returns

The cookie value as a string slice if found, None otherwise