Available on crate features
cookies_ssr or cookies_wasm only.Expand description
Setting/getting cookies in wasm or ssr.
Structs§
- Cookies options (see https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie).
Enums§
- SameSite value for CookieOptions.
Functions§
- Delete a cookie if it exists. Cookies might not delete if path or domain are different, if not deleting pass the same options.
- Get and automatically decode a cookie into a deserializable type. If the cookie isn’t found, or if it fails to deserialize, returns None. When it fails to deserialize, an error will be recorded.
- Get the raw value of a cookie. If the cookie isn’t found, returns None.
- Set a new cookie with the given name and serializable value. If serialization fails, an error will be recorded.
- Set a new cookie with the given name and raw value.