MCPcopy Create free account
hub / github.com/PerroEngine/Perro / remove_cookie_value

Function remove_cookie_value

perro_source/api_modules/perro_web/src/storage.rs:187–193  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

185
186#[cfg(target_arch = "wasm32")]
187fn remove_cookie_value(key: &str) -> io::Result<()> {
188 document()?
189 .set_cookie(&format!(
190 "{key}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax"
191 ))
192 .map_err(js_err)
193}
194
195#[cfg(target_arch = "wasm32")]
196fn load_bytes_impl(scope: StorageScope, key: &str) -> io::Result<Option<Vec<u8>>> {

Callers 1

remove_implFunction · 0.85

Calls 1

documentFunction · 0.85

Tested by

no test coverage detected