Skip to main content

csrf_token_for_response

Function csrf_token_for_response 

Source
pub fn csrf_token_for_response(cookie_header: Option<&str>) -> String
Expand description

Extracts the CSRF token from the cookie header or creates a fresh token.

§Parameters

§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");