Crate wasm_cookies

Source

Re-exports§

pub use cookies::AllDecodeError;
pub use cookies::CookieOptions;
pub use cookies::SameSite;

Modules§

cookies
This module provides the same functions as the root module, but which don’t operate directly on the browser’s cookie string, so it can be used outside a browser.

Enums§

FromUrlEncodingError
Error when decoding invalid UTF-8

Functions§

all
Returns all cookies, with URI decoded keys and values (with the urlencoding crate), or an error if URI decoding fails on a key or a value.
all_raw
Returns all cookies, with undecoded keys and values.
delete
Deletes a cookie, URI encoding its name.
delete_raw
Deletes a cookie without encoding its name.
get
If it exists, returns URI decoded cookie (with the urlencoding crate) or an error if the value’s URI decoding fails.
get_raw
Returns undecoded cookie if it exists.
set
Sets a cookie, with URI encoded name and value (with the urlencoding crate).
set_raw
Sets a cookie, with non encoded name and value.