MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / extract_cookie_finds_value

Function extract_cookie_finds_value

crates/openshell-server/src/auth/http.rs:479–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477
478 #[test]
479 fn extract_cookie_finds_value() {
480 let cookies = "other=foo; CF_Authorization=eyJhbGciOiJSUzI1NiJ9.test; bar=baz";
481 assert_eq!(
482 extract_cookie(cookies, "CF_Authorization"),
483 Some("eyJhbGciOiJSUzI1NiJ9.test".to_string())
484 );
485 }
486
487 #[test]
488 fn extract_cookie_returns_none_when_missing() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected