Skip to main content

extract_ip_from_peer_info_cookie

Function extract_ip_from_peer_info_cookie 

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

Extracts an address-like value from peer metadata cookie text.

§Parameters

§Returns

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

§Examples

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