(path: &str)
| 732 | } |
| 733 | |
| 734 | fn normalize_http_path(path: &str) -> &'static str { |
| 735 | match path { |
| 736 | p if p.starts_with("/_ws_tunnel") => "/_ws_tunnel", |
| 737 | p if p.starts_with("/auth/") => "/auth", |
| 738 | _ => "unknown", |
| 739 | } |
| 740 | } |
| 741 | |
| 742 | /// Extract an [`Identity`] from the peer certificates presented during a TLS |
| 743 | /// handshake. Returns `None` if no client certificate was presented. |