Adding example for cookies
@@ -16,7 +16,14 @@ use std::sync::{Arc, RwLock};
/// ```rust
///
/// let mut app = tide::Server::new();
+/// app.at("/get").get(|cx: tide::Request<()>| async move { cx.cookie("testCookie").unwrap().unwrap().value().to_string() });
+/// app.at("/set").get(|_| async {
+/// let mut res = tide::Response::new(200);
+/// res.set_cookie(cookie::Cookie::new("testCookie", "NewCookieValue"));
+/// res
+/// });
/// app.middleware(tide::middleware::CookiesMiddleware::new());
+///
/// ```
#[derive(Debug, Clone, Default)]
pub struct CookiesMiddleware;
