Module bitbazaar::cookies

source ·
Expand description

Setting/getting cookies in wasm or ssr.

Structs§

Enums§

Functions§

  • Delete a cookie if it exists.
  • 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.