Skip to main content

extract_ip_from_peer_info

Function extract_ip_from_peer_info 

Source
pub fn extract_ip_from_peer_info(value: &str) -> Option<String>
Expand description

Extracts an address from peer information without trusting arbitrary text.

§Parameters

§Returns

Returns Some when crate::http::extract_ip_from_peer_info can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::http::extract_ip_from_peer_info.

§Examples

ⓘ
let _result = pharos_runtime_core::http::extract_ip_from_peer_info("value");
  • crate::http for adjacent helpers that share the same runtime surface.