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

Function cookie_decode

perro_source/api_modules/perro_web/src/storage.rs:156–161  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

154
155#[cfg(target_arch = "wasm32")]
156fn cookie_decode(text: &str) -> io::Result<String> {
157 js_sys::decode_uri_component(text)
158 .map_err(js_err)?
159 .as_string()
160 .ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, "cookie decode fail"))
161}
162
163#[cfg(target_arch = "wasm32")]
164fn load_cookie_value(key: &str) -> io::Result<Option<String>> {

Callers 1

load_cookie_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected