pub fn extract_ip_from_peer_info(value: &str) -> Option<String>Expand description
Extracts an address from peer information without trusting arbitrary text.
§Parameters
value: Input consumed bycrate::http::extract_ip_from_peer_info.
§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");§Related
crate::httpfor adjacent helpers that share the same runtime surface.