Skip to main content

csrf_token_from_cookie

Function csrf_token_from_cookie 

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

Returns the CSRF cookie token when present.

§Parameters

§Returns

Returns Some when crate::runtime::dynamic::csrf_token_from_cookie can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::csrf_token_from_cookie("session=abc");