#[cfg_attr(test, mockall::automock)]
pub trait CoreCookieAccessor {
    /// Sets/Resets a response cookie value.
    fn set<'a>(&mut self, key: &str, value: &str, max_age: u32, top_level_domain: Option<&'a str>);

    /// Returns a response cookie value if it exists,
    /// otherwise returns a request cookie value by the passed name it if it exists,
    /// otherwise returns None.
    fn get(&self, key: &str) -> Option<String>;
}
