/// Adds `cookie` to the parent jar. The cookie's value is encrypted with
/// authenticated encryption assuring confidentiality, integrity, and
/// authenticity.
///
/// # Example
///
/// ```rust
/// use actori_http::cookie::{CookieJar, Cookie, Key};
///
/// let key = Key::generate();
/// let mut jar = CookieJar::new();
/// jar.private(&key).add(Cookie::new("name", "value"));
///
/// assert_ne!(jar.get("name").unwrap().value(), "value");
/// assert_eq!(jar.private(&key).get("name").unwrap().value(), "value");
/// ```
Adds `cookie` to the parent jar. The cookie's value is encrypted with
authenticated encryption assuring confidentiality, integrity, and
authenticity.
Adds ` cookie ` to the parent jar . The cookie ' s value is encrypted with authenticated encryption assuring confidentiality integrity and authenticity .
pub fn add(&mut self, mut cookie: Cookie<'static>) {
        self.encrypt_cookie(&mut cookie);
        // Add the sealed cookie to the parent.
        self.parent.add(cookie);
    }
pub fn add ( & mut self , mut cookie : Cookie < ' static > ) { self . encrypt_cookie ( & mut cookie ) ; // Add the sealed cookie to the parent. self . parent . add ( cookie ) ; }
Adds `cookie` to the parent jar.
Adds ` cookie ` to the parent jar .
&mut self
cookie
Cookie<'static>
example
```rust
use actori_http::cookie::{CookieJar, Cookie, Key}.

let key = Key::generate();
let mut jar = CookieJar::new();
jar.private(&key).add(Cookie::new("name", "value")).


` ` ` rust use actori_http :: cookie :: { CookieJar Cookie Key } . let key = Key :: generate () ; let mut jar = CookieJar :: new () ; jar . private ( &key ) . add ( Cookie :: new ( " name " " value " )) .