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

Function cookie_encode

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

Source from the content-addressed store, hash-verified

147
148#[cfg(target_arch = "wasm32")]
149fn cookie_encode(text: &str) -> String {
150 js_sys::encode_uri_component(text)
151 .as_string()
152 .unwrap_or_else(|| text.to_string())
153}
154
155#[cfg(target_arch = "wasm32")]
156fn cookie_decode(text: &str) -> io::Result<String> {

Callers 1

save_cookie_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected