pub fn parse_server_name(server_name: &str) -> Option<String> {
  match idna::domain_to_unicode(server_name) {
    (name, Ok(())) => Some(name),
    _ => None,
  }
}
/// Parse and normalize a server name
Parse and normalize a server name
Parse and normalize a server name
pub fn parse_server_name(server_name: &str) -> Option<String> {
  match idna::domain_to_unicode(server_name) {
    (name, Ok(())) => Some(name),
    _ => None,
  }
}
pub fn parse_server_name ( server_name : & str ) -> Option < String > { match idna :: domain_to_unicode ( server_name ) { ( name , Ok ( ( ) ) ) => Some ( name ) , _ => None , } }
Parse and normalize a server name
Parse and normalize a server name
server_name
&str
server_name
&str