laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! Cookies, for small values the browser keeps between requests, such as a theme or a
//! dismissed banner.
//!
//! Read cookies with [`Request::cookie`](crate::http::Request::cookie), and send them with
//! [`Response::with_cookie`](crate::http::Response::with_cookie), as a `("name", "value")` pair
//! or a [`Cookie`] with attributes. On routes in the `web` group, [`EncryptCookies`] encrypts
//! every cookie you send and decrypts the cookies the browser sends back. To learn more, check out
//! the [cookies guide](https://github.com/laravel/rust-framework/blob/0.x/docs/cookies.md).
//!
//! ```no_run
//! use laravel::http::{Request, Response};
//! use laravel::cookie::Cookie;
//! use laravel::time::ToSpan;
//!
//! async fn toggle_theme(request: Request) -> Response {
//!     let theme = match request.cookie("theme").as_deref() {
//!         Some("dark") => "light",
//!         _ => "dark",
//!     };
//!
//!     Response::new(theme)
//!         .with_cookie(("theme", theme))
//!         .with_cookie(Cookie::new("remember", "1").max_age(30.days()))
//!         .without_cookie("tour")
//! }
//! ```

pub(crate) use laravel_http::cookie::*;
#[doc(inline)]
pub use laravel_http::cookie::{Cookie, EncryptCookies, Removal, SameSite};