pub fn csrf_token_for_response(cookie_header: Option<&str>) -> StringExpand description
Extracts the CSRF token from the cookie header or creates a fresh token.
§Parameters
cookie_header: Input consumed bycrate::runtime::dynamic::csrf_token_for_response.
§Returns
Returns the computed value produced by crate::runtime::dynamic::csrf_token_for_response.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::csrf_token_for_response("session=abc");§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.